I know one possible way to remove '#' from AngularJs route url is to enable html5 mode. like:
$locationProvider.html5Mode(true) if window.history && window.history.pushState
This is work, but the problem is after I click menu and switch to the correct page and refresh it, it shows template is missing!! I pretty sure this is because after refresh page, the view will automatically load rails view with the url instead of AngularJs route url. Could someone help me?
<base href=".">
) appropriately on your main index page. The official documentation onUsing $location
provides further information on this. – miqid Jul 14 '14 at 8:57"."
was just a suggestion, prefer/
if ends up working for you. It's strange how routing is causing your URL to have encoded values though (i.e. the%2F
, which should be forward slashes). – miqid Jul 15 '14 at 1:03