diff --git a/public/js/main.js b/public/js/main.js index 1c30d3f..887184c 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -77,7 +77,7 @@ const app = new Vue({ el: '#app', data: { journey_id : window.location.pathname.split('/').at(-1) || gen_id(16), - journey_step: window.location.hash.slice(1)==""?-1:parseInt(window.location.hash.slice(1)), + journey_step: window.location.hash.slice(1)==""?((window.location.pathname.split('/').at(1)=='view')?0:-1):parseInt(window.location.hash.slice(1)), journey_step_data: {day:-1, section:-1}, journey_data : { name: "New Journey", diff --git a/public/template/journey.html b/public/template/journey.html index ebb7fb4..1f82376 100644 --- a/public/template/journey.html +++ b/public/template/journey.html @@ -43,7 +43,7 @@