Skip to content

Commit

Permalink
wc: Fix condition to highlight a tool as active in secondary bar #TAS…
Browse files Browse the repository at this point in the history
…K-7216 #TASK-7100
  • Loading branch information
jmjuanes committed Dec 20, 2024
1 parent 47f74f6 commit 902b511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webcomponents/commons/layout/layout-secondary-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class LayoutSecondaryBar extends LitElement {
}

renderTool(tool) {
const active = this.currentUrl.startsWith(`#${this.app.id}/${tool.id}`);
const active = this.currentUrl.startsWith(`#${this.app.id}/${tool.id}/`);
return html`
<li class="nav-item">
<a class="nav-link text-body ${active ? "active" : ""}" style="${active ? `border-color:${this.app.color || ""};border-width: 2px` : ""}" href="#${this.app.id}/${tool.id}">
Expand Down

0 comments on commit 902b511

Please sign in to comment.