You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trailing slashes "/" at the end of the URL, even if the file extension is an ".html" file, the renderer calls the 404 page. This might be done following the RFC 1738. Which represents with slashes at the end as a directory like "example.com/directory/" & without slashes representing a file like so "example.com/file.ext"
The following information was found regarding this:
Add a trailing single forward slash / at the end of url ending with .html
Possible Solution(s)
The renderer should check whether the not found error is caused by an "allowed character", here in this case is a forward slash /. And if yes, then recheck if file exists by removing the "allowed character".
Notes
Using a list of "allowed character" to bypass certain http status codes, is a debatable topic. Will this feature be misused? Certain special characters could cause a different functionality to be executed by the browsers.
Version
mdbook v0.4.40
The text was updated successfully, but these errors were encountered:
Problem
Trailing slashes "/" at the end of the URL, even if the file extension is an ".html" file, the renderer calls the 404 page. This might be done following the RFC 1738. Which represents with slashes at the end as a directory like "example.com/directory/" & without slashes representing a file like so "example.com/file.ext"
The following information was found regarding this:
https://developers.google.com/search/blog/2010/04/to-slash-or-not-to-slash
https://stackoverflow.com/questions/5948659/when-should-i-use-a-trailing-slash-in-my-url
https://datatracker.ietf.org/doc/rfc1738/
Steps
/
at the end of url ending with.html
Possible Solution(s)
The renderer should check whether the not found error is caused by an "allowed character", here in this case is a forward slash
/
. And if yes, then recheck if file exists by removing the "allowed character".Notes
Using a list of "allowed character" to bypass certain http status codes, is a debatable topic. Will this feature be misused? Certain special characters could cause a different functionality to be executed by the browsers.
Version
The text was updated successfully, but these errors were encountered: