Normalize links in templates

This commit is contained in:
wpetit 2021-01-22 11:42:03 +01:00
parent d4ac72ff39
commit eb9f19eaa0
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<div class="columns is-mobile">
<div class="column is-narrow">
<h1 class="is-size-3 title">
<a href="{{ .BaseURL }}" rel="Inbox" class="has-text-grey-dark">
<a href="{{ .BaseURL }}/" rel="Inbox" class="has-text-grey-dark">
{{if or .Messages .SMS}}
📳
{{else}}

View File

@ -2,9 +2,9 @@
{{define "header_buttons"}}
<button class="button is-danger"
data-controller="restful"
data-restful-endpoint="{{ .BaseURL }}/{{ .SMS.ID }}"
data-restful-endpoint="{{ .BaseURL }}/sms/{{ .SMS.ID }}"
data-restful-method="DELETE"
data-restful-redirect="{{ .BaseURL }}">
data-restful-redirect="{{ .BaseURL }}/">
🗑️ Delete
</button>
{{end}}