Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
add hash and queries to breadcrumb (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvansande authored and frozeman committed Jan 18, 2017
1 parent b08925c commit eb9c3ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion interface/client/lib/helpers/helperFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '';
});
Expand Down

0 comments on commit eb9c3ef

Please sign in to comment.