skip to Main Content

Our developers are working on Angular development and they implemented an application and its login URL as follows http://app./ag/#/can/auth/login. They wants to clean this url by removing # from this login URL.Is it possible to create Apache proxy pass to remove this # from this URL?
I mean we need to access the above URL by http://app./ag/can/auth/login.

2

Answers


  1. You can simply remove this from the Angualr configuration :

    RouterModule.forRoot(routes/*, { useHash: true }*/)
    

    This will remove the hash from the URL.

    Login or Signup to reply.
  2. Thank you @roni for posting this and thank you @trichetriche for you valuable information.

    In the above example url http://app.com/ag/can/auth/login. We can do routing without hash easily if the route is static. We need can in url as dynamic and we are looking for the same to achieve by angular routing concept. Is that possible for us to route a dynamic url without hash.. Waiting for your reply..

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search