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
Leading slash missing when Slim 3 installed in subfolder #1554
Labels
Comments
tuupola
changed the title
Leading slash missing when Slim 3 installed in subfoder
Leading slash missing when Slim 3 installed in subfolder
Oct 23, 2015
I believe that this is intentional. If the path is relative, (no leading |
Ok. I thought it might be a intentional. Currently I just use workaround below to always get leading slash. Although $uri = "/" . $request->getUri()->getPath();
$uri = str_replace("//", "/", $uri); |
Really, you should use:
|
Fair enough :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With Slim 3 both rc1 and 3.x-dev the code below returns
/foo/bar
when installed in document root. However when installed into subfolder it returnsfoo/bar
without the leading slash. It does not matter whetherRewriteBase
is set or not.The text was updated successfully, but these errors were encountered: