Dealing with a unique edge case problem here where an external application is in need of a specific URL parameter to be included in the URL request made to our website:
https://stackoverflow.com/questions/ask?abc=123
Sharing a screenshot for reference:
https://i.sstatic.net/VY14X.png
Sometimes, the URL parameter fails to display correctly which leads to the URL being altered to:
https://stackoverflow.com/questions/ask?abc={{}}
With Angular functioning on our site, it encounters difficulty in parsing this error, resulting in unnecessary errors for the webpage.
Could Angular possibly have a method for encoding the URL before it enters the app?
Details
- Using Angular 1.6.6
Current Solution
We've implemented a temporary nginx
redirect solution as a quick fix, however, we believe it would be more beneficial to address the root cause of the issue.
We have researched extensively about altering the template tags but realize that it would require a major overhaul.
Expected Outcome
Avoiding any custom URL variables, we aim for the system to not encounter errors and perform smoothly as anticipated without parsing issues like
https://stackoverflow.com/questions/ask?abc={{}}