Fix missed redirection to home page when not logged
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4aaac80301
commit
ef49cccb93
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user