Special redirects - placeholders: Is it expected that ORIGINAL_PATH includes "/"? #1982
-
Documentation reference: https://shlink.io/documentation/advanced/special-redirects/ The {ORIGINAL_PATH} includes a slash at the start. E.g. The "%2F" is a "/" character that is encoded. Is this the intended behavior, and if so, is there a way to configure it not to include the slash in the ORIGINAL_PATH? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
To clarify - the expectation was to redirect to https://www.example.com/?s=invalidPath
This issue was observed on version 3.7.3 |
Beta Was this translation helpful? Give feedback.
-
This is the intended behavior, yes. The Is that causing any problem? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your prompt reply and for confirming the intended behaviour of the However, I’d like to clarify the issue I’m encountering with this functionality, as it impacts the use case I’m working with. In my scenario, I’m utilising the Shlink short URL to redirect to a WordPress site, specifically directing the For instance, when a user visits an invalid short URL like Is there a way to configure Shlink or a workaround to prevent the leading slash ( Thank you for considering this issue. I'm looking forward to hearing your thoughts or suggestions on a possible solution. Perhaps adding another placeholder (e.g. |
Beta Was this translation helpful? Give feedback.
This is the intended behavior, yes. The
{ORIGINAL_PATH}
placeholder is always replaced with the full path, which always starts with a/
.Is that causing any problem?