Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Broken auth when using UBP_SITEURL #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryanwooten6
Copy link

The original code removed all url parts but host and path in the UBP_SITEURL conditional in the get_siteurl() method. This meant when using UBP_SITEURL with auth, the auth would never get used in the get_auth method.

I've added a property called url_parts that gets assigned parsed url values before the reconstruction of the url. This way the url_parts can be used in the get_auth method without the auth being removed from the UBP_SITEURL. All other url option should continue to work with or without auth.

The original code removed all url parts but host and path in the UBP_SITEURL conditional in the get_siteurl() method. I've added a property called url_parts that gets assigned parsed url values before the reconstruction of the url. This way the url_parts can be used in the get_auth method without the auth being removed form the UBP_SITEURL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant