Fixes for requested changes and url rewrite logic now handled by JS since trailing slash is more related to HTML rendering

This commit is contained in:
Eren AY 2024-05-28 14:10:01 +02:00
parent 0318729d3f
commit ed3a1fbfe9
2 changed files with 9 additions and 8 deletions

View file

@ -5,6 +5,11 @@
-->
<html>
<head>
<script type="text/javascript">
if (window.location.pathname.endsWith('/') === false) {
window.location.href = window.location + "/";
}
</script>
<style>
body {
font-family: monospace;
@ -44,7 +49,7 @@
{% for object in objects %}
<tr>
<td><a href="/{{ object.parent | urlencode }}{{ object.path | urlencode }}" data-size-bytes="{{ object.size_bytes }}">{{ object.path }}</a></td>
<td><a href="{{ object.path | urlencode }}" data-size-bytes="{{ object.size_bytes }}">{{ object.path }}</a></td>
<td>{{ object.size }}</td>
<td>{{ object.last_modification}}</td>
</tr>