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

add hash and queries to breadcrumb #1596

Merged
merged 2 commits into from
Jan 18, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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