Closed janbarasek closed 3 years ago
There's a built-in path filter in Nette\Http\RequestFactory
which replaces sequence of /
with a single /
. See https://github.com/nette/http/blob/v3.0.3/src/Http/RequestFactory.php#L28
Yes, of course, but I think this is a natural duplication that should be redirected.
@dg How can I solve this issue? This bug makes a number of duplicate pages and damages SEO.
I think firstly I must fix Url
entity which should support sequence of /
in case of homepage or ending with it.
Thanks.
This is related to nette/http, I know about it and it will be addressed in version 4.0.
v3.0.0
Description
In case of
domain.com////
internal methodmatch(IRequest $httpRequest): ?array
got fake URL with only one slash.Some example (
CustomRouter.php
):In production mode dump looks like this:
So object
UrlScript
contains invalid URL and I can open URLhttps://nette.org
,https://nette.org/
andhttps://nette.org/////
too without canonical redirect.Steps To Reproduce
Open
https://nette.org/////
for example:Thanks.