YunoHost-Apps / redirect_ynh

Redirection app for YunoHost
GNU Affero General Public License v3.0
45 stars 21 forks source link

Can't redirect from `https://mydomain.tld/a_redirect_name` to `https://myotherdomain.tld/` #35

Open sebmennetrier opened 2 years ago

sebmennetrier commented 2 years ago

Describe the bug

Found breaking change: Can't redirect from https://mydomain.tld/a_redirect_name to https://myotherdomain.tld/ and this behavior worked before PR #27. Now the redirection is opening https://myotherdomain.tld/a_redirect_name

Context

Steps to reproduce

Expected behavior

When opening https://mydomain.tld/a_redirect_name in a browser, the redirection should be done on redirect path https://myotherdomain.tld/ (like before PR #27)

Proposal

The behavior described in PR #27 (and so the solution) should be activated thanks a new options when the redirect app is installed or by adding choices in option redirect_type

zamentur commented 2 years ago

This pr should fix that: https://github.com/YunoHost-Apps/redirect_ynh/pull/37

MadMan247 commented 4 months ago

I can confirm that this is still a relevant issue; installing on a subdomain subpath e.g. installing on www.example.com/redirect configured to redirect to example.com results in redirecting to the URL example.com/redirect. This will only allow access to folders that are in the path containing /redirect on the destination URL. If this is intended, that is fine, however the explanation when installing is insufficient.