Commit 5e99f22b authored by Andreas Knote's avatar Andreas Knote
Browse files

breadcrumbs: fix illegal url attribute

parent a4958d54
Pipeline #34648 passed with stage
in 11 minutes and 45 seconds
......@@ -112,7 +112,7 @@ ReactDOM.render(<Nav />, document.getElementById("react-placeholder-navigation")
// ////////////////////////////////////////////////////////////////////////////
const Breadcrumb = () => {
const breadcrumbPlaceholder = document.getElementById("react-placeholder-breadcrumb");
const url = breadcrumbPlaceholder.getAttribute("url").replace(/\/$/, "");
const url = breadcrumbPlaceholder.getAttribute("data-url").replace(/\/$/, "");
const getBreadcrombItems = () => {
let result = undefined;
......
......@@ -115,7 +115,7 @@
</div>
<div class="content">
<div class="content-breadcrumb" id="react-placeholder-breadcrumb" url="{{ site.baseurl }}{{ page.url }}"></div>
<div class="content-breadcrumb" id="react-placeholder-breadcrumb" data-url="{{ site.baseurl }}{{ page.url }}"></div>
{{ content }}
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment