diff --git a/src/shared.js b/src/shared.js index 12e2e3f..cbdf341 100644 --- a/src/shared.js +++ b/src/shared.js @@ -9,7 +9,7 @@ export function cleanSlash(x) { } export function cleanHref(x) { - return cleanSlash(x).replace('/?', '?') + return x && cleanSlash(x).replace('/?', '?') } export function notValue(x) {