Fix sidebar openHAB logo href to avoid repeated navigation to home page (#2657)

When clicking repeatedly on the openHAB logo in the sidebar, the
overview page was opened over and over again because it now resides
under the `/overview` path. By adjusting the href to `/overview`, this
is fixed.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
pull/2660/head
Florian Hotze 2024-07-09 11:21:08 +02:00 committed by GitHub
parent 146fda4bb7
commit 2d07d21ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -3,12 +3,12 @@
<!-- Left Panel -->
<f7-panel v-show="ready" left :cover="showSidebar" class="sidebar" :visible-breakpoint="1024">
<f7-page>
<f7-link href="/" class="logo no-ripple" panel-close v-if="themeOptions.dark === 'dark'">
<f7-link href="/overview" class="logo no-ripple" panel-close v-if="themeOptions.dark === 'dark'">
<div class="logo-inner">
<img src="@/images/openhab-logo-white.svg" type="image/svg+xml" width="196px">
</div>
</f7-link>
<f7-link href="/" class="logo no-ripple" panel-close v-else>
<f7-link href="/overview" class="logo no-ripple" panel-close v-else>
<div class="logo-inner">
<img src="@/images/openhab-logo.svg" type="image/svg+xml" width="196px">
</div>