Lines Matching refs:url
222 `url`; any URL which is not from the same origin as the current URL will
226 @param {String} url URL to match.
230 hasRoute: function (url) {
231 if (!this._hasSameOrigin(url)) {
235 return !!this.match(this.removeRoot(url)).length;
276 @param {String} url URL.
279 removeRoot: function (url) {
284 url = url.replace(this._regexUrlOrigin, '');
286 if (root && url.indexOf(root) === 0) {
287 url = url.substring(root.length);
290 return url.charAt(0) === '/' ? url : '/' + url;
317 @param {String} [url] URL to set. This URL needs to be of the same origin as
323 replace: function (url) {
324 return this._queue(url, true);
379 @param {String} callback.req.url The full URL.
433 @param {String} [url] URL to set. This URL needs to be of the same origin as
439 save: function (url) {
440 return this._queue(url);
525 @param {String} url Full URL.
530 _dispatch: function (path, url, src) {
542 req = self._getRequest(path, url, src);
675 @param {String} url Current full URL being dispatched.
680 _getRequest: function (path, url, src) {
684 url : url,
731 Returns `true` when the specified `url` is from the same origin as the
738 @param {String} url URL to compare origin with the current URL.
742 _hasSameOrigin: function (url) {
743 var origin = ((url && url.match(this._regexUrlOrigin)) || [])[0];
767 @param {String} url URL to append to the `root` URL.
771 _joinURL: function (url) {
774 url = this.removeRoot(url);
776 if (url.charAt(0) === '/') {
777 url = url.substring(1);
781 root + url :
782 root + '/' + url;
862 a `url` that is not from the same origin as the current URL will result in
866 @param {String} [url] URL for the history entry.
872 _save: function (url, replace) {
873 var urlIsString = typeof url === 'string';
876 if (urlIsString && !this._hasSameOrigin(url)) {
887 url: urlIsString ? this._joinURL(url) : url
891 urlIsString && (url = this.removeRoot(url));
896 if (url === HistoryHash.getHash()) {
899 HistoryHash[replace ? 'replaceHash' : 'setHash'](url);