forked from matteo/serves3
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:
parent
0318729d3f
commit
ed3a1fbfe9
2 changed files with 9 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue