VipinS VipinS - 10 months ago 68
AngularJS Question

How to Remove # tag from url MEAN STACK

Hi i am using Mean stack for a Web application problem is the url containing #!

something like


I want the urls like


How to do this.

Answer Source

In your $routeProvider, use the HTML5 History API:


Setting For Relative Links:

To link around your application using relative links, you will need to set a <base> in the <head> of your document.

<!doctype html>
    <meta charset="utf-8">

    <base href="/">

You can read about this in detail here: Pretty URLs in AngularJS: Removing the #

Hope this helps.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download