Remove hashbangs from routing?


#1

Is there support for $locationProvider.html5Mode(true); ?

Hashbangs are ugly :smile:


#2

I agree, any response here?


#3

+1 I would also like to see this. I tried using html5Mode but it doesn’t seem to work with Ionic.


#4

I used ui-router for a web application with html5Mode, and it needs server side configuration: https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#how-to-configure-your-server-to-work-with-html5mode

More precisely:

When you have html5Mode enabled, the # character will no longer be used in your urls. The # symbol is useful because it requires no server side configuration. Without #, the url looks much nicer, but it also requires server side rewrites.

Hashbangs are ugly but when do you display them to the user. To me the state URL are behind the scene and not seen by the user.


#5

@sydney Right the server conf is like 3 lines. I think were just looking for support for the option here is all.

And behind the scenes? Perhaps for iOS/Android apps but not for web apps.


#6

Any updates on this?


#7

Any changes in the new release on Ionic yet? Hope to see html5mode working with ionic CLI commands too.


#8

+1 For me it’s also important!


#9

+1 from me too a good to have thing :+1: