Open sebmennetrier opened 2 years ago
This pr should fix that: https://github.com/YunoHost-Apps/redirect_ynh/pull/37
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.
Describe the bug
Found breaking change: Can't redirect from
https://mydomain.tld/a_redirect_name
tohttps://myotherdomain.tld/
and this behavior worked before PR #27. Now the redirection is openinghttps://myotherdomain.tld/a_redirect_name
Context
Steps to reproduce
mydomain.tld
/a_redirect_name
https://myotherdomain.tld/
public_302
Expected behavior
When opening
https://mydomain.tld/a_redirect_name
in a browser, the redirection should be done on redirect pathhttps://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