Fix redirect issue

This commit is contained in:
Sidharth Vinod
2021-05-29 17:37:55 +05:30
parent 7aaa1582ff
commit 39b8dc237f
3 changed files with 11 additions and 3 deletions
+9
View File
@@ -14,6 +14,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v2
id: yarn-and-build-cache
with:
path: |
node_modules
key: ${{ runner.os }}-node_modules-build-deploy-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-build-deploy-
- name: Build & Deploy
run: |
npm i -g yarn
-2
View File
@@ -5,8 +5,6 @@
onMount(async () => {
// Handle old live editor links and redirect to new version
console.log(base);
debugger;
const hash = window.location.hash.split('/');
let newURL = 'edit';
if (hash.length > 2) {
+2 -1
View File
@@ -22,7 +22,8 @@ const config = {
: {},
ssr: false,
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
target: '#svelte',
trailingSlash: 'never'
}
};