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

[5.6] remove full baseUrl from generated url paths (follow up) #24101

Merged
merged 3 commits into from
May 4, 2018

Conversation

tomschlick
Copy link
Contributor

This is a follow up to #24074 to fix cases where the current url contains a prefix (like /subfolder/index.php). The previous PR only fixed /subfolder.

Instead of using the request()->getBasePath() method it now uses request()->getBaseUrl(). That should take care of all cases.

Tests have been updated to reflect that change and two more were added to check all possible types of prefixes (/subfolder, /subfolder/index.php, other.php).

Sorry for not catching this in the original PR!

@taylorotwell taylorotwell merged commit 1fc6cd5 into laravel:5.6 May 4, 2018
@tomschlick tomschlick deleted the patch-2 branch May 4, 2018 20:11
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.

None yet

2 participants