diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue
index c2a6ac16e4b0f6fc3c0827ae178b408751b70ec5..dfc856aeff7faf81599e368617d8e49ca5ddd658 100644
--- a/src/components/AppHeader.vue
+++ b/src/components/AppHeader.vue
@@ -284,7 +284,10 @@ export default {
       return this.configuration.VUE_APP_DISABLE_LOGIN_BUTTON;
     },
     SSO_LOGIN_URL() {
-      return `${this.configuration.VUE_APP_LOGIN_URL}/?next=${encodeURIComponent(window.location.href)}`;
+      if (this.configuration.VUE_APP_LOGIN_URL) {
+        return `${this.configuration.VUE_APP_LOGIN_URL}/?next=${encodeURIComponent(window.location.href)}`;
+      }
+      return null;
     },
 
     logo() {