Closed gutjuri closed 7 months ago
We discussed this some time ago (I don't remember where). @SethFalco mentioned the issue with this, i.e. trailing /
is required in the URL to show the actual page. Without it, they might show a completely different page or an error page. Which would ultimately, lead us to exclude the error code from the CI.
For a base domain, like example.org/
vs example.org
, it makes no difference, so we can do whatever.
For a domain with a path on it, like example.org/foo/
vs example.org/foo
, these are entirely different URLs and different web servers may route them differently. Most just happen to redirect one to the other.
Assuming no normalization is taking place,
/example
and/example/
are different paths.From a technical, search engine standpoint, it's certainly permissible for these two URL versions to contain different content.
— https://developers.google.com/search/blog/2010/04/to-slash-or-not-to-slash
We could apply a rule to base domains, but if we were to have a rule for paths, I'd favor whatever doesn't cause a redirect rather than whatever has a prettier URL.
Ok makes sense, thanks!
Afaik we discourage this. We could also add this to our style-guide.