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

Parameterized redirection #51

Open
heynemann opened this issue Dec 20, 2023 · 0 comments
Open

Parameterized redirection #51

heynemann opened this issue Dec 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@heynemann
Copy link

Is your feature request related to a problem?

Many times we want users to provide parameterized links, such as /s/google/something redirecting to https://www.google.com/search?q=test. This allows the redirection service to be that more powerful, since it becomes more flexible.

Describe the solution you'd like

Ideally slash would allow users to provide two URLs, one for no parameters, other with parameters. One of them must be filled. These could work like:

Memorable Name: google/(.+)
URL: https://www.google.com/search?q=\1

Memorable Name: my-api/(^/+)/(\d+)
URL: https://myapi.mycompany.com/\1?pageSize=\2

Additional context

No response

@heynemann heynemann added the enhancement New feature or request label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant