fix(recorder): Use hash based routing

This commit is contained in:
Aditya Hase 2019-01-05 23:38:34 +05:30
parent cca0d75695
commit 049d404f99
2 changed files with 5 additions and 2 deletions

View file

@ -28,8 +28,8 @@ frappe.ready(function() {
]
const router = new VueRouter({
mode: 'history',
base: "/recorder",
mode: 'hash',
base: "/recorder/",
routes: routes,
})

View file

@ -16,6 +16,9 @@ def do_not_record():
def get_context(context):
do_not_record()
if frappe.request.path[-1] != "/":
frappe.local.flags.redirect_location = "recorder/"
raise frappe.Redirect
return {"highlight": HtmlFormatter().get_style_defs()}