'Redirect NGINX with # in location

My Location URL is something like this - www.example.com/test1/#/run1 I need to redirect it to - www.example.com/test2/#/run2

But location block in NGINX doesn't work normally with #. How do I escape it and redirect?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source