Express and Angular’s html5Mode

I’ve been trying to use Node and Express with Angular’s html5Mode enabled. I keep running into problems.

Here is the first one:

And here is the latest one:

In short, I am currently trying to detect Facebook’s user agent and reroute the traffic. I enabled html5Mode so I could route the URL’s properly without the hashtag (#) being in the URL. But some errors occur depending on how this is configured, such as the page saying Cannot GET /.../... when I refresh the page, or the page loading twice which breaks Mixpanel and the site.

Author: Fantashit

1 thought on “Express and Angular’s html5Mode

Comments are closed.