I've been working on an angular application and have implemented
"$locationProvider.html5Mode(true)"
in my route configuration to eliminate the use of /#/
in URLs. Additionally, I've included base href="/"
in index.html and everything functions properly when pages are refreshed.
However, when attempting to refresh a page with the URL:
"http://localhost:3000/home/:JavaScipt%20SC2.0",
I encounter the error message
Cannot GET /home/:JavaScipt%20SC2.0
.
I suspect this error is caused by the name "JavaScript SC2.0" containing a period (.
). Any suggestions on how to resolve this issue?