Lines Matching refs:url
29 @param {String} url The URL that the router will dispatch to its route
33 @param {String} [hash] The hash-fragment (including "#") of the `url`. This
34 will be present when the `url` differs from the current URL only by its
40 specified `url` is the same as the current URL.
132 @param {String} url The URL to navigate to. This must be of the same origin
138 to `true` if the specified `url` is the same as the current URL.
144 navigate: function (url, options) {
146 url = this._resolveURL(url);
148 if (this._navigate(url, options)) {
152 if (!this._hasSameOrigin(url)) {
191 @param {String} url The fully-resolved URL that the router should dispatch
198 to `true` if the specified `url` is the same as the current URL.
205 _navigate: function (url, options) {
207 if (!this.hasRoute(url)) {
212 options.url = url;
217 // Captures the `url`'s hash and returns a URL without that hash.
218 hashlessURL = url.replace(/(#.*)$/, function (u, h, i) {
224 // When the specified `url` and current URL only differ by the hash,
235 Lang.isValue(options.replace) || (options.replace = url === currentURL);
245 win && win.location.replace(url);
247 win && (win.location = url);
349 @param {String} url URL to resolve.
354 _resolveURL: function (url) {
355 var parts = url && url.match(this._regexURL),
404 this[e.replace ? 'replace' : 'save'](e.url);
436 var url;
443 url = e.currentTarget.get('href');
447 url && this._navigate(url, {originEvent: e}) && e.preventDefault();