When using the route provider and setting this specific route:
.when('/:name/:id', {
It successfully navigates to my desired path and executes the code when I enter:
https://localhost.myapp.com:9000/Paul/123
However, it fails to work with this URL:
https://localhost.myapp.com:9000/Paul/123.456
Despite my ID being 123.456, I need to use the second scenario but encounter an error saying "Cannot GET ...", leading me to believe that the dot is causing the issue.
Upon checking the network tab, it seems that the browser interprets 123.456 as a file extension, similar to readme.txt
, assuming that the characters after the dot represent the file type.
An interesting observation is that this works in production.
Any suggestions on how to resolve this?