Browse Source

fix personnalized lists urls

Olivier Massot 2 years ago
parent
commit
41f25f2b92
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/Layout/SubHeader/PersonnalizedList.vue

+ 2 - 1
components/Layout/SubHeader/PersonnalizedList.vue

@@ -54,6 +54,7 @@ import {useEntityFetch} from "~/composables/data/useEntityFetch";
 import {ComputedRef, Ref, ref} from "@vue/reactivity";
 import {AnyJson} from "~/types/data";
 import ApiResource from "~/models/ApiResource";
+import UrlUtils from "~/services/utils/urlUtils";
 
 const btn: Ref = ref(null)
 
@@ -88,7 +89,7 @@ const runtimeConfig = useRuntimeConfig()
 const homeUrl: string = runtimeConfig.baseUrlAdminLegacy
 
 const getListURL = (list: PersonalizedList) => {
-  return `${homeUrl}/${list.entity}/list/${list.id}`
+  return UrlUtils.join(homeUrl, '#', list.entity ?? '', 'list', list.id ?? '')
 }
 </script>