Ember.AutoLocation Namespace packages/ember-routing/lib/location/auto_location.js:15

Ember.AutoLocation will select the best location option based off browser support with the priority order: history, hash, none.

Clean pushState paths accessed by hashchange-only browsers will be redirected to the hash-equivalent and vice versa so future transitions are consistent.

Keep in mind that since some of your users will use HistoryLocation, your server must serve the Ember app at all the routes you define.

Show:

_getFullPath

private

_getHash

private

_getHashPath

private

_getHistoryPath

private

_getOrigin

private

_getPath

private

_getQuery

private

_getRootURL

private

_getSupportsHashChange

private

_getSupportsHistory

private

_replacePath

private

create

Selects the best location option based off browser support and returns an instance of that Location class.

Show:

_HashLocation

private

Default: Ember.HashLocation

_HistoryLocation

private

Default: Ember.HistoryLocation

_NoneLocation

private

Default: Ember.NoneLocation

_history

private

Default: window.history

_window

private

Default: window

cancelRouterSetup

private

Default: false

location

private

Default: window.location

rootURL

private

Default: '/'