-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
multi-segment slugs return 404 when ending in a / #1531
Comments
related: #1090 perhaps it's already documented elsewhere and i missed it. |
I will try to document it better |
I have actually realized that supporting trailing slashes is quite easy. I don't remember what was the challenge back in the day when I investigated it. Could be that something has changed in the codebase that makes it easier now. I will add a new env var/config option that will allow enabling support for trailing slashes, and document the considerations, being:
These are quite edge cases though, so I think its ok. |
lovely! i'm glad that as shlink has evolved with the support of multi-segment slugs, handling of trailing forward slash may be facilitated. enabling as an opt-in config feels like a good match, since that is the approach used for multi-segment as well. looking forward to it! |
How Shlink is set-up
Summary
https://shlink.io/documentation/some-features/#multi-segment-custom-slugs
in the considerations section, it might be worth documenting that you get a 404 on slugs that end with a
/
this happens already to any slug, but with multi-segement slugs, if you have the following
http://example.com/store/donut
andhttp://example.com/store
it becomes a bit more common to accidentally leave the
/
on the shorter slugCurrent behavior
you get a 404 on any short URL that ends with a forward slash
Expected behavior
either this is documented, particularly in the multi-segment docs or a feature is introduced to assume when a request ends in a
/
, the/
can safely be ignoredThe text was updated successfully, but these errors were encountered: