We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac653be + 7798156 commit be75822Copy full SHA for be75822
Source/History.js
@@ -21,7 +21,7 @@ provides: History
21
var events = Element.NativeEvents,
22
location = window.location,
23
cleanURL = function(url){
24
- if (url.match(/^https?:\/\//)) url = '/' + url.split('/').slice(3).join('/');
+ if (url && url.match(/^https?:\/\//)) url = '/' + url.split('/').slice(3).join('/');
25
return url;
26
},
27
base = cleanURL(location.href),
0 commit comments