Fixes #25 Javascript to redirect into the ds
This commit is contained in:
parent
be90329514
commit
a8cd90c349
@ -37,6 +37,11 @@ html
|
||||
head
|
||||
|
||||
title Pattern
|
||||
script.
|
||||
let u = document.location.href.substring(0, document.location.href.search(/patterns/i));
|
||||
let p = document.location.pathname.substring(document.location.pathname.search(/patterns/i));
|
||||
p = p.replace(/\/$|\/index\.html/i, "").substring(9);
|
||||
window.location = u + "?p=" + p;
|
||||
|
||||
body(data-assetpath= assetpath data-prismjs-copy-timeout="1500")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user