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

Fix url helper functions to work when site hosted in subfolders. #2407

Merged
merged 2 commits into from
Nov 15, 2019

Conversation

lonnieezell
Copy link
Member

@lonnieezell lonnieezell commented Nov 15, 2019

  • base_url fixed to ensure a trailing slash when it needs it to property resolve relative URIs
  • current_url fixed to merge any folders in the request URI's path.

Fixes #2365
Fixes #2347

@lonnieezell lonnieezell merged commit 4771484 into develop Nov 15, 2019
@MGatner
Copy link
Member

MGatner commented Nov 16, 2019

Wow that was a mess. Who knew it would be so complicated? Thanks for the digging!

@lonnieezell
Copy link
Member Author

@MGatner Yeah, it was a bit of a pain to track down. I got the base_url fix relatively easy, but the other took me down a few wrong turns. Hopefully this fixes it.

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.

Bug: current_url function not working as expected. Bug: URL, Redirect and Pagination misbehave
2 participants