Skip to content

Commit

Permalink
Fix page highlighting in sidebar (#1967)
Browse files Browse the repository at this point in the history
Fixes #1966.

Happens when you have pages prefixed with the name of another page.

Signed-off-by: Yannick Schaus <github@schaus.net>
  • Loading branch information
ghys committed Jul 18, 2023
1 parent 8d310b2 commit acfdb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundles/org.openhab.ui/web/src/components/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<f7-icon slot="media" ios="f7:menu" aurora="f7:menu" md="material:list"></f7-icon>
</f7-list-item> -->
<f7-list-item v-for="page in pages" :animate="false" :key="page.uid"
:class="{ currentsection: currentUrl.indexOf('/page/' + page.uid) >= 0 }"
:class="{ currentsection: currentUrl === '/page/' + page.uid || currentUrl.indexOf('/page/' + page.uid + '/') >= 0 }"
:link="'/page/' + page.uid"
:title="page.config.label" view=".view-main" panel-close>
<f7-icon slot="media" :f7="pageIcon(page)" />
Expand Down

0 comments on commit acfdb59

Please sign in to comment.