소스 검색

fix personnalized lists urls

Olivier Massot 2 년 전
부모
커밋
41f25f2b92
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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>