Extentionless URL with a slash appended breaks relative URLs
!112 (merged) introduced extensionless URLs #95 (closed).
While this feature is cool, having also the third option as described in !112 (comment 107708886), it breaks any relative URLs inside the page.
Let's imagine we have a file named
public/alice/bob.html
, according to #95 (closed) it should reachable with the following URLs:
http://example.com/alice/bob.html
✅ http://example.com/alice/bob
✅ http://example.com/alice/bob/
❌
Why this breaks relative URLs
Take for example https://docs.gitlab.com/ee/development/integrations/secure/ which is an extensionless result of https://docs.gitlab.com/ee/development/integrations/secure.html. Any relative URL inside this doc will be broken.
This is because the extra appending slash (/
), actually alters the path of the relative URL. For example, if there's a URL referenced as ../../ci/yaml/README.html
, with the appending slash, there should be added one more path ../../../ci/yaml/README.html
for it to work correctly.