fix(recorder): Use hash based routing
This commit is contained in:
parent
cca0d75695
commit
049d404f99
2 changed files with 5 additions and 2 deletions
|
|
@ -28,8 +28,8 @@ frappe.ready(function() {
|
|||
]
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
base: "/recorder",
|
||||
mode: 'hash',
|
||||
base: "/recorder/",
|
||||
routes: routes,
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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()}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue