Display: platform logo redirects to Home instead of Index for logged users

pull/6066/head
Angel Fernando Quiroz Campos 9 months ago
parent 6d8f30289b
commit 5de3af3ca8
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 5
      assets/vue/components/layout/PlatformLogo.vue

@ -1,9 +1,12 @@
<script setup>
import { ref } from "vue"
import { usePlatformConfig } from "../../store/platformConfig"
import { useSecurityStore } from "../../store/securityStore"
import { useVisualTheme } from "../../composables/theme"
const platformConfigStore = usePlatformConfig()
const securityStore = useSecurityStore()
const { getThemeAssetUrl } = useVisualTheme()
const siteName = platformConfigStore.getSetting("platform.site_name")
@ -25,7 +28,7 @@ const onError = () => {
<template>
<div class="platform-logo">
<BaseAppLink :to="{ name: 'Index' }">
<BaseAppLink :to="securityStore.user ? { name: 'Home' } : { name: 'Index' }">
<img
:alt="siteName"
:src="currentSrc"

Loading…
Cancel
Save