javascript - Angular $location. How could be parsed a query string in html5Mode(true) if user submit an URL with hashbang? -


I am developing a search page and need to store another state in all selected filters and URLs , so that users can share the results of their work.

I use the angle $ location.search () to update and parse the URL. The location provider is following the settings:

  $ locationProvider.html5Mode (true) .hashPrefix ('!');   

The problem begins when Users of legacy browsers share a link with a modern browser user with Hashbang in such a case $ location.search ( ) Nothing will return

As I have understood that "#" is in html5 mode, $ location.hash () and not $ location.search () but what is the purpose of hashreffics ('! ')? I thought that this kind of issue should be resolved ...

How can I parse a query string in html5Mode (true) if a user submits a URL with hashbank?

What I think, if you have the html5 Mode set to True and no legacy browser supports it, it will automatically come back to the hash tag routing. If a person had to capture that URL, then share it with a friend and you were shared for your circumstances to change the query, route and deep links on your server, it seems that You will be covered.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -