Skip to content

Commit

Permalink
wc: Fix condition to set an app as active in the sidebar #TASK-7216 #…
Browse files Browse the repository at this point in the history
…TASK-7100
  • Loading branch information
jmjuanes committed Nov 27, 2024
1 parent a26183e commit f66ed22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webcomponents/commons/layout/layout-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class LayoutSidebar extends LitElement {
}

renderButton(app) {
const active = this.currentUrl.startsWith(`#${app.id}`); // url always start with the app ID
const active = this.currentUrl.startsWith(`#${app.id}/`); // url always start with the app ID
return html`
<a
class="text-decoration-none d-flex align-items-center flex-column gap-2 p-2 rounded-2 cursor-pointer ${active ? "bg-gray-200" : "hover:bg-gray-100"}"
Expand Down

0 comments on commit f66ed22

Please sign in to comment.