diff --git a/src/core/utils.js b/src/core/utils.js index fbfd3155..1a835d3f 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -675,5 +675,5 @@ export function getAcceptControllingResponse(responses) { return suitable2xxResponse || suitableDefaultResponse } -export const createDeepLinkPath = (str) => str ? str.replace(/\s/g, "_") : "" +export const createDeepLinkPath = (str) => typeof str == "string" || str instanceof String ? str.trim().replace(/\s/g, "_") : "" export const escapeDeepLinkPath = (str) => cssEscape( createDeepLinkPath(str) )