Fix cookie paths
Former-commit-id: 25141b4324b7355bd9e1c5a04a8e51d7e6a293ed [formerly 350423a47322359a33c8db7743aa88b25f9c44e1] [formerly 8a7042ed9763a6b9c8ba1cf88c027aed6b663f08 [formerly 2936858adbc29b3157b2bc93c7b7c1e1870ceb58]] Former-commit-id: 8cf7d99da15f44c3572366bdae279e78c0bfd2c7 [formerly e35c21fe57fd3e6f2342248f1d228ae454a6285d] Former-commit-id: 60db7620422cd88fa960388d2002ff82b36efe9c
This commit is contained in:
@@ -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