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

URI trailing slashes? #637

Open
g105b opened this issue Aug 5, 2023 · 0 comments
Open

URI trailing slashes? #637

g105b opened this issue Aug 5, 2023 · 0 comments

Comments

@g105b
Copy link
Member

g105b commented Aug 5, 2023

Currently the URIs are forced to have trailing slashes. I think this is necessary, but aesthetically I would prefer not to see trailing slashes at the end of URIs.

Original rationale for trailing slashes:

  1. Having trailing slashes helps identify WebEngine requests (rather than requests to static assets)
  2. Links can behave relatively (e.g. <a href="./something/">...</a>
  3. 307 can be used to preserve any POST data that's in the request

I personally think that these three points are obsolete, and can be achieved without trailing slashes.

Either way, work it out, document it and create some examples, especially for relative links. It might be worth making this configurable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant