We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac653be commit 7798156Copy full SHA for 7798156
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