diff --git a/static/index.html b/static/index.html
index 42cf989..8f2836f 100755
--- a/static/index.html
+++ b/static/index.html
@@ -235,15 +235,14 @@
var button = document.createElement( 'a' );
button.style.marginRight = '0px';
+ button.textContent = 'gallery';
if ( document.referrer.startsWith( 'https://glslsandbox.com/' ) ) {
- button.textContent = 'back';
- button.href = document.referrer;
+ button.href = 'javascript:window.history.go( -1 )';
} else {
- button.textContent = 'gallery';
button.href = '/';
}