diff --git a/frontend/src/components/AppHeading.vue b/frontend/src/components/AppHeading.vue index 25628b766..b140d5828 100644 --- a/frontend/src/components/AppHeading.vue +++ b/frontend/src/components/AppHeading.vue @@ -14,6 +14,7 @@ diff --git a/frontend/src/components/AppLink.vue b/frontend/src/components/AppLink.vue index 016de3cb9..755c0e36f 100644 --- a/frontend/src/components/AppLink.vue +++ b/frontend/src/components/AppLink.vue @@ -26,7 +26,7 @@ ...routeTo, state: mapValues(state, (value) => stringify(value)), }" - :replace="!!routeTo.hash && !routeTo.path" + :replace="replace" > @@ -46,6 +46,8 @@ const router = useRouter(); type Props = { /** location to link to */ to: string | RouteLocationRaw; + /** whether to replace url instead of push */ + replace?: boolean; /** * state data to attach on navigation. object/array values get stringified. * https://developer.mozilla.org/en-US/docs/Web/API/History/pushState @@ -56,8 +58,9 @@ type Props = { }; const props = withDefaults(defineProps(), { - noIcon: false, + replace: false, state: undefined, + noIcon: false, }); const slots = useSlots(); diff --git a/frontend/src/components/AppSelectAutocomplete.vue b/frontend/src/components/AppSelectAutocomplete.vue index ee6588536..31c56d9ba 100644 --- a/frontend/src/components/AppSelectAutocomplete.vue +++ b/frontend/src/components/AppSelectAutocomplete.vue @@ -115,7 +115,8 @@ export type Option = {