diff --git a/interface/client/lib/helpers/helperFunctions.js b/interface/client/lib/helpers/helperFunctions.js index 2133045c9..bb6dbb32e 100644 --- a/interface/client/lib/helpers/helperFunctions.js +++ b/interface/client/lib/helpers/helperFunctions.js @@ -116,9 +116,14 @@ Helpers.generateBreadcrumb = function (url) { filteredUrl = { protocol: Blaze._escape(url.protocol), host: Blaze._escape(url.host), - pathname: Blaze._escape(url.pathname) + pathname: Blaze._escape(url.pathname), + search: Blaze._escape(url.search), + hash: Blaze._escape(url.hash) }; + filteredUrl.pathname += filteredUrl.search.replace(/\?/g, '/'); + filteredUrl.pathname += filteredUrl.hash.replace(/#/g, '/'); + pathname = _.reject(filteredUrl.pathname.replace(/\/$/g, '').split('/'), function (el) { return el === ''; });