emberjs/ember.js — pull request #1680 by lulezi (2013-01-04 15:51:33+00:00)
Title: Added default property rootURL in Ember.Router

I added the default property `rootURL: '/'` to Ember.Router because in [`setupLocation()`](https://github.com/emberjs/ember.js/blob/master/packages/ember-routing/lib/system/router.js#L6-L16), `rootURL` is `undefined` if there's no `routeURL` passed when extending Ember.Router.

This doesn't affect the app when the Router is used with `location: 'hash'`. However, when `location: 'history'` is set the error `Uncaught TypeError: Cannot call method 'replace' of undefined` is thrown in [`formatURL()`](https://github.com/emberjs/ember.js/blob/master/packages/ember-routing/lib/location/history_location.js#L139) because `rootURL` is still `undefined`.