diff --git a/resources/skel/_templates/photo.html b/resources/skel/_templates/photo.html index 3ede869..f586b3f 100644 --- a/resources/skel/_templates/photo.html +++ b/resources/skel/_templates/photo.html @@ -5,11 +5,11 @@ document.onkeydown = function(event) { if (event.key == "ArrowLeft") { {% if prev_image %} - location.href = "{{prev_image.html_path}}"; + location.href = "{{prev_image.html_filename}}"; {% endif %} } else if (event.key == "ArrowRight") { {% if next_image %} - location.href = "{{next_image.html_path}}"; + location.href = "{{next_image.html_filename}}"; {% endif %} } } @@ -17,13 +17,13 @@ {% block content %}