From efbcd971cb5f844da319a87f32af93b5274aac44 Mon Sep 17 00:00:00 2001 From: aotearoan Date: Mon, 29 Jun 2020 00:26:28 +0200 Subject: [PATCH] gh pages refresh path fix --- package.json | 2 +- src/app/App.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3d5d1c95..d9661458 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@aotearoan/neon", "description": "Neon is a design library of components for use with VueJS. It supports light and dark modes and can be extended to support multiple themes", - "version": "0.18.11", + "version": "0.18.12", "main": "dist/@aotearoan/neon.umd.js", "types": "dist/@aotearoan/components.d.ts", "files": [ diff --git a/src/app/App.ts b/src/app/App.ts index 2d4306b3..98d83fb1 100644 --- a/src/app/App.ts +++ b/src/app/App.ts @@ -55,8 +55,9 @@ export default class App extends Vue { public mounted() { const path = localStorage.getItem('path'); if (path) { + console.error(path); localStorage.removeItem('path'); - this.$router.push({ path: path.replace(process.env.VUE_APP_BASE_URL || '/', '/') }); + this.$router.push({ path: path.replace('/neon', '') }); } NeonModeUtils.init();