* Properly handle hash URL changes. * Make sure we replace origin correctly. * Get rid of RegExp for getUrl().