1
0
Fork 0

avoid exception if path is null

Dieser Commit ist enthalten in:
Angus McLeod 2018-08-29 10:01:52 +10:00
Ursprung 7303a9314d
Commit 3cdaa82ac5

Datei anzeigen

@ -25,7 +25,7 @@ export default {
const existing = DiscourseURL.routeTo;
DiscourseURL.routeTo = function(path, opts) {
if (path.indexOf('/w/') > -1) {
if (path && path.indexOf('/w/') > -1) {
return window.location = path;
}
return existing.apply(this, [path, opts]);