I would like to access URL params in Vue methodology, other than using window.location.href and parsing.
router/index.js
const router = new Router({
mode: 'hash',
routes: []
});
router.beforeEach((to, from, next) => {
/*
*WOULD LIKE TO ACCESS THE URL PARAMS HERE*
**to.query** is not working in hash mode.
*/
})