diff --git a/layouts/default.vue b/layouts/default.vue index 5932482dc..baa870cb6 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -180,7 +180,7 @@ stroke-linecap="round" stroke-linejoin="round" @click=" - $colorMode.value = + $colorMode.preference = $colorMode.value === 'dark' ? 'light' : 'dark' " > @@ -195,7 +195,7 @@ stroke-linecap="round" stroke-linejoin="round" @click=" - $colorMode.value = + $colorMode.preference = $colorMode.value === 'dark' ? 'light' : 'dark' " > @@ -253,7 +253,7 @@ export default { }, logout() { this.$auth.setToken('local', false) - this.$router.go() + this.$router.go(null) }, }, } diff --git a/nuxt.config.js b/nuxt.config.js index 1d2cdb21b..1ee4300a0 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -34,13 +34,14 @@ export default { }, { hid: 'theme-color', name: 'theme-color', content: '#4d9227' }, + { hid: 'og:site_name', name: 'og:site_name', content: 'Modrinth' }, { hid: 'og:title', name: 'og:title', content: 'Modrinth' }, { hid: 'og:description', name: 'og:description', content: 'An open source modding platform', }, - { hid: 'og:type', name: 'og:type', content: 'website' }, + { hid: 'og:type', name: 'og:type', content: 'object' }, { hid: 'og:url', name: 'og:url', content: 'https://www.modrinth.com' }, { hid: 'og:image', diff --git a/pages/mod/_id.vue b/pages/mod/_id.vue index 84189a3a1..0eeee1511 100644 --- a/pages/mod/_id.vue +++ b/pages/mod/_id.vue @@ -6,6 +6,7 @@ import axios from 'axios' export default { + auth: false, async asyncData(data) { const res = await axios.get( `https://api.modrinth.com/api/v1/mod/${data.params.id}` diff --git a/pages/user/_id.vue b/pages/user/_id.vue index c21c79d86..8de219152 100644 --- a/pages/user/_id.vue +++ b/pages/user/_id.vue @@ -8,6 +8,7 @@ import axios from 'axios' export default { + auth: false, async asyncData(data) { let res = await axios.get( `https://api.modrinth.com/api/v1/user/${data.params.id}`