diff --git a/source/js/components/ViewProvider.vue b/source/js/components/ViewProvider.vue
index 9b66dd354a6b4d051a9cd3610e5446a3a6ab4838..75ab10bf82f82b2b667a17346045332883a1d585 100644
--- a/source/js/components/ViewProvider.vue
+++ b/source/js/components/ViewProvider.vue
@@ -86,7 +86,7 @@ export default {
       const queryParams = new URLSearchParams(window.location.search);
       const locationView = queryParams.get(this.$props.locationParam);
 
-      if (Object.keys(this.$data.views).indexOf(locationView) !== -1) {
+      if (locationView && Object.keys(this.$data.views).indexOf(locationView) !== -1) {
         this.showView(locationView);
       }
     }