Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

angular html5mode support remove hashbang # #330


User avatar
0
dotnetshadow created

How do you remove the # in urls using the angular .htmlMode(true) syntax?

I tried the following but it didn't work app.js app.config I tried adding $urlRouterProvider.html5Mode(true);


4 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    I don't know this feature of Angularjs. But I don't think ABP template restricts it. If it's working out of ABP, it should work with ABP. At least, theoretically :)

  • User Avatar
    0
    kaushikthanki created

    any solution for server side ? I have successfully implemented on client end,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Are you getting an error from server side ? If you handled it on the client side, it should work.

  • User Avatar
    0
    gpcaretti created

    <cite>kaushikthanki: </cite> any solution for server side ? I have successfully implemented on client end,

    try these 2 links

    <a class="postlink" href="http://blog.dmbcllc.com/asp-net-angular-js-html5mode/">http://blog.dmbcllc.com/asp-net-angular-js-html5mode/</a> <a class="postlink" href="https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#how-to-configure-your-server-to-work-with-html5mode">https://github.com/angular-ui/ui-router ... -html5mode</a>