Lines Matching refs:url
31 @param {String} url The URL that the router will dispatch to its route
35 @param {String} [hash] The hash-fragment (including "#") of the `url`. This
36 will be present when the `url` differs from the current URL only by its
42 specified `url` is the same as the current URL.
134 @param {String} url The URL to navigate to. This must be of the same origin
140 to `true` if the specified `url` is the same as the current URL.
146 navigate: function (url, options) {
148 url = this._resolveURL(url);
150 if (this._navigate(url, options)) {
154 if (!this._hasSameOrigin(url)) {
193 @param {String} url The fully-resolved URL that the router should dispatch
200 to `true` if the specified `url` is the same as the current URL.
207 _navigate: function (url, options) {
209 if (!this.hasRoute(url)) {
214 options.url = url;
219 // Captures the `url`'s hash and returns a URL without that hash.
220 hashlessURL = url.replace(/(#.*)$/, function (u, h, i) {
226 // When the specified `url` and current URL only differ by the hash,
237 Lang.isValue(options.replace) || (options.replace = url === currentURL);
247 win && win.location.replace(url);
249 win && (win.location = url);
351 @param {String} url URL to resolve.
356 _resolveURL: function (url) {
357 var parts = url && url.match(this._regexURL),
406 this[e.replace ? 'replace' : 'save'](e.url);
438 var url;
445 url = e.currentTarget.get('href');
449 url && this._navigate(url, {originEvent: e}) && e.preventDefault();