diff --git a/client/src/components/History/HistoryView.vue b/client/src/components/History/HistoryView.vue
index e185e7517147..a21c0ba9744c 100644
--- a/client/src/components/History/HistoryView.vue
+++ b/client/src/components/History/HistoryView.vue
@@ -26,7 +26,7 @@
- History imported and is now your active history. View here.
+ History imported and is now your active history. View here.
import { mapActions, mapState } from "pinia";
+import { isAnonymousUser } from "@/api";
import { useHistoryStore } from "@/stores/historyStore";
import { useUserStore } from "@/stores/userStore";
@@ -123,6 +124,9 @@ export default {
canImportHistory() {
return !this.userOwnsHistory && !this.history.purged;
},
+ importedHistoryLink() {
+ return isAnonymousUser(this.currentUser) ? "/" : "/histories/list";
+ },
},
created() {
this.loadHistoryById(this.id);