diff --git a/blocks/breadcrumbs/breadcrumbs.js b/blocks/breadcrumbs/breadcrumbs.js index 09998870..d35d88e5 100644 --- a/blocks/breadcrumbs/breadcrumbs.js +++ b/blocks/breadcrumbs/breadcrumbs.js @@ -26,7 +26,8 @@ export default class Breadcrumbs extends ComponentBase { connected() { this.classList.add('full-width'); this.classList.add('breadcrumbs'); - this.path = window.location.href.split(getBaseUrl()).join('/').split('/'); + const { origin, pathname } = window.location; + this.path = `${origin}${pathname}`.split(getBaseUrl()).join('/').split('/'); this.innerHTML = `