aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-10-10 03:01:31 -0400
committertdro <tdro@noreply.example.com>2022-10-10 03:01:31 -0400
commita78c0989ee815fe04e2f949d0b9c2b22c3824d5b (patch)
tree8fd65c4681dd16af5b66e79abf3d96b0f305c439
parentd58e237d38863856a864afa370d8c6d628c1aa86 (diff)
downloadcanory-a78c0989ee815fe04e2f949d0b9c2b22c3824d5b.tar.gz
canory-a78c0989ee815fe04e2f949d0b9c2b22c3824d5b.tar.bz2
canory-a78c0989ee815fe04e2f949d0b9c2b22c3824d5b.zip
themes/default/layouts/_default/home.xslt: Allow browser back function
Fall back to home when there's no JavaScript
-rw-r--r--themes/default/layouts/_default/home.xslt.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/home.xslt.xsl b/themes/default/layouts/_default/home.xslt.xsl
index 42d6984..05a35ea 100644
--- a/themes/default/layouts/_default/home.xslt.xsl
+++ b/themes/default/layouts/_default/home.xslt.xsl
@@ -22,7 +22,7 @@
<main>
<nav>
<icon-button>
- <a id="back" href="/">
+ <a href="/" onclick="window.history.go(-1); return false;">
{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-left.svg")) }}
<small>Back</small>
</a>