Can I add a base url for all routes in an AngularJS application? Essentially, changing its location on the server (sort of if it makes sense ... so it will be available not through '/', but through '/ something /').
To add some context, I am trying to host an existing Angular application with some authentication, so now the application will be available at say http://mysite/secure after a successful login.
The problem is that if I have to load the application in http://mysite/secure , it works fine (the server will obviously serve the correct page), but clicking any link will reload the page and go to http://mysite/#newpage instead of http://mysite/secure/#newpage .
Without adding / protection / to all routes and link element, is this possible? Hi, sorry if this is not well said.
angularjs
adamK Jul 21 '13 at 3:38 on 2013-07-21 03:38
source share