Fix cookie paths
This commit is contained in:
5 files changed
+13
-2392
No files matched your search
@@ -214,8 +214,10 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
document.cookie = `sort=${sort}; max-age=31536000; path=${this.$store.state.baseURL}`
|
||||
document.cookie = `order=${order}; max-age=31536000; path=${this.$store.state.baseURL}`
|
||||
let path = this.$store.state.baseURL
|
||||
if (path === '') path = '/'
|
||||
document.cookie = `sort=${sort}; max-age=31536000; path=${path}`
|
||||
document.cookie = `order=${order}; max-age=31536000; path=${path}`
|
||||
this.$store.commit('setReload', true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ export default {
|
||||
}
|
||||
|
||||
this.$store.commit('listingDisplay', display)
|
||||
document.cookie = `display=${display}; max-age=31536000; path=${this.$store.state.baseURL}`
|
||||
let path = this.$store.state.baseURL
|
||||
if (path === '') path = '/'
|
||||
document.cookie = `display=${display}; max-age=31536000; path=${path}`
|
||||
},
|
||||
icon: function () {
|
||||
if (this.$store.state.req.display === 'mosaic') return 'view_list'
|
||||
|
||||
Reference in new issue
Block a user