Fix missed redirection to home page when not logged
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2021-01-14 00:06:33 +01:00
parent 4aaac80301
commit ef49cccb93

View File

@ -63,7 +63,7 @@ export default {
// Check if the user is logged
// If the user is logged, it already displays domain's lists
if (!this.user_isLogged) {
if (window.location.href === '/') {
if (this.$route.path === '/') {
// Not logged at home-page -> redirect to static commercial presentation
let preferedLang = navigator.language.split('-')[0] || process.env.VUE_APP_I18N_LOCALE || 'en'
if (preferedLang !== 'en' && preferedLang !== 'fr') {