Skip to content

Commit

Permalink
fix(redirect): remove domain query
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jan 19, 2024
1 parent bf79661 commit 02d69ce
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,11 @@
return
}
// return navigateTo({
// path: '/posts/' + to.query.domain,
// query: to.query,
// hash: to.hash
// })
const searchParams = new URLSearchParams(to.query)
searchParams.delete('domain')
// Redirect
window.location.replace('/posts/' + to.query.domain + '?' + new URLSearchParams(to.query).toString())
window.location.replace('/posts/' + to.query.domain + '?' + searchParams.toString())
}
]
})
Expand Down

0 comments on commit 02d69ce

Please sign in to comment.