How can I redirect a specific URL in nginx to a different URI path?
I'm looking to handle the success of a password reset to redirect to the login page of a different web application on the same subdomain.
E.g (https://subdomain.example.com/webapp/login/login.action#/?passwordUpdate=true
-> https://subdomain.example.com/webapp2/
).
I've tried the following, but it doesn't seem to hit the location block.
location ~/webapp/login/login.action#/?passwordUpdate=true {
return 301 https://subdomain.example.com/webapp2/;
}