Reopening Ember.AutoLocation

I recently had a client wanting to redirect all IE6-9 users to a browser upgrade page. I found this surprisingly difficult with the router location modules (history|auto), although I probably missed something simple.

I would love to see a configuration option (ENV, APP, something…) that allowed for hash-compatible routing to a deadpetal page. I ended up putting something in the ember.js auto-location “create” function, as I couldn’t figure out how to reopen and do _super.

Anyone think this matters enough to do? Or alternately IS there a way to do this?

1 Like

How about sub-classing Ember.Route and using the redirect hook to force a redirect?

If I am understanding correctly, you could do something like this:

Ah that looks great. I’ll give it a try.