diff --git a/src/snek/static/fancy-button.js b/src/snek/static/fancy-button.js index 5407a3b..a3e28f8 100644 --- a/src/snek/static/fancy-button.js +++ b/src/snek/static/fancy-button.js @@ -44,7 +44,9 @@ class FancyButton extends HTMLElement { const me = this this.buttonElement.appendChild(document.createTextNode(this.getAttribute("text"))) this.buttonElement.addEventListener("click",()=>{ - if(me.url){ + if(me.url == "/back" || me.url == "/back/"){ + window.history.back() + }else if(me.url){ window.location = me.url } }) diff --git a/src/snek/templates/about.html b/src/snek/templates/about.html index 0f1b8a9..e403458 100644 --- a/src/snek/templates/about.html +++ b/src/snek/templates/about.html @@ -3,5 +3,5 @@ {% block main %} - + {% endblock %} \ No newline at end of file