Catalog-internal back button does not work #1

Open
opened 2025-11-17 21:15:44 +00:00 by jsheunis · 0 comments
Member

Pressing the back button does nothing. Console output shows:

[Vue warn]: Property or method "history" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> <Anonymous>
       <Root> vue.js:634:17
[Vue warn]: Error in v-on handler: "TypeError: can't access property "back", history is undefined"

Looks like it could be related to the interplay between vue router history mode and the server's routing setup. Vue Router docs explain the necessity to have a server side rerouting catch-all: https://router.vuejs.org/guide/essentials/history-mode.html#HTML5-Mode. The datalad-catalog demo site does this via Netlify.

And this is their suggestion for caddy v2: https://router.vuejs.org/guide/essentials/history-mode.html#Caddy-v2

Pressing the back button does nothing. Console output shows: ``` [Vue warn]: Property or method "history" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <Anonymous> <Root> vue.js:634:17 [Vue warn]: Error in v-on handler: "TypeError: can't access property "back", history is undefined" ``` Looks like it could be related to the interplay between vue router history mode and the server's routing setup. Vue Router docs explain the necessity to have a server side rerouting catch-all: https://router.vuejs.org/guide/essentials/history-mode.html#HTML5-Mode. The datalad-catalog demo site does this via Netlify. And this is their suggestion for caddy v2: https://router.vuejs.org/guide/essentials/history-mode.html#Caddy-v2
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
q04/data.trr379.de#1
No description provided.