aboutsummaryrefslogtreecommitdiff
path: root/templates/imgs_page.html
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst@digdash.com>2024-09-05 18:26:22 +0200
committerJulian Hurst <julian.hurst@digdash.com>2024-09-05 18:26:22 +0200
commitbe9d1e3652a86a960477409ce61fd329bf8d22ed (patch)
tree92b036d66583ed6e9925a3c12f2fecf008f294a9 /templates/imgs_page.html
parent635b5da0768d912a7ddf8a3f1ddc6bb8f8865a45 (diff)
downloaddocspace-rootprefix.tar.gz
Support path prefixrootprefix
Diffstat (limited to 'templates/imgs_page.html')
-rw-r--r--templates/imgs_page.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/imgs_page.html b/templates/imgs_page.html
index 3aa6bfa..74df9a3 100644
--- a/templates/imgs_page.html
+++ b/templates/imgs_page.html
@@ -2,11 +2,11 @@
{{range $i, $img := .Data.Imgs}}
{{if eq (add $i $.Data.Start) $.Data.End}}
{{if ne $.Data.UserImpersonation ""}}
- <div hx-get="/imgs?page={{add $.Data.Page 1}}&fragment&user={{$.Data.UserImpersonation}}"
+ <div hx-get="{{.ROOT}}/imgs?page={{add $.Data.Page 1}}&fragment&user={{$.Data.UserImpersonation}}"
hx-trigger="revealed"
hx-swap="afterend">
{{else}}
- <div hx-get="/imgs?page={{add $.Data.Page 1}}&fragment"
+ <div hx-get="{{.ROOT}}/imgs?page={{add $.Data.Page 1}}&fragment"
hx-trigger="revealed"
hx-swap="afterend">
{{end}}