Lines Matching refs:url
224 `url`; any URL which is not from the same origin as the current URL will
228 @param {String} url URL to match.
232 hasRoute: function (url) {
233 if (!this._hasSameOrigin(url)) {
237 return !!this.match(this.removeRoot(url)).length;
278 @param {String} url URL.
281 removeRoot: function (url) {
286 url = url.replace(this._regexUrlOrigin, '');
288 if (root && url.indexOf(root) === 0) {
289 url = url.substring(root.length);
292 return url.charAt(0) === '/' ? url : '/' + url;
319 @param {String} [url] URL to set. This URL needs to be of the same origin as
325 replace: function (url) {
326 return this._queue(url, true);
381 @param {String} callback.req.url The full URL.
435 @param {String} [url] URL to set. This URL needs to be of the same origin as
441 save: function (url) {
442 return this._queue(url);
527 @param {String} url Full URL.
532 _dispatch: function (path, url, src) {
544 req = self._getRequest(path, url, src);
677 @param {String} url Current full URL being dispatched.
682 _getRequest: function (path, url, src) {
686 url : url,
733 Returns `true` when the specified `url` is from the same origin as the
740 @param {String} url URL to compare origin with the current URL.
744 _hasSameOrigin: function (url) {
745 var origin = ((url && url.match(this._regexUrlOrigin)) || [])[0];
769 @param {String} url URL to append to the `root` URL.
773 _joinURL: function (url) {
776 url = this.removeRoot(url);
778 if (url.charAt(0) === '/') {
779 url = url.substring(1);
783 root + url :
784 root + '/' + url;
864 a `url` that is not from the same origin as the current URL will result in
868 @param {String} [url] URL for the history entry.
874 _save: function (url, replace) {
875 var urlIsString = typeof url === 'string';
878 if (urlIsString && !this._hasSameOrigin(url)) {
889 url: urlIsString ? this._joinURL(url) : url
893 urlIsString && (url = this.removeRoot(url));
898 if (url === HistoryHash.getHash()) {
901 HistoryHash[replace ? 'replaceHash' : 'setHash'](url);