You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The URL Shortening functionality only seems to work for URL shorteners that take the long URL and API key through a GET request.
I am using self hosting shlink, but its GET request functionality seems to be deprecated.
The solution
Can an option for using a link shortener that takes a POST request be added?
Alternatives
An alternative could be a field in the config that simply displays the shortened URL as the output of a script that runs on the host when a shortened URL is requested. Such a script can simply run a curl command and specify POST request body parameters, then regex the result.
The text was updated successfully, but these errors were encountered:
Sure, go ahead and raise a pull request with your suggested change. I assume you would like to make it a configuration option? It will require some creativity to communicate the configuration option from the backend to the frontend code, maybe in a similar way like the compression setting is passed down into the template for the client side application to pick it up?
The problem
The URL Shortening functionality only seems to work for URL shorteners that take the long URL and API key through a GET request.
I am using self hosting shlink, but its GET request functionality seems to be deprecated.
The solution
Can an option for using a link shortener that takes a POST request be added?
Alternatives
An alternative could be a field in the config that simply displays the shortened URL as the output of a script that runs on the host when a shortened URL is requested. Such a script can simply run a curl command and specify POST request body parameters, then regex the result.
The text was updated successfully, but these errors were encountered: