|
4 | 4 | <head> |
5 | 5 | <title>{{ .Title }} {{ if .Title }}|{{ end}} DictPress</title> |
6 | 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | | - <link rel="stylesheet" type="text/css" href="{{ .Consts.RootURL }}/admin/static/grid.css?v={{ .AssetVer }}"> |
8 | | - <link rel="stylesheet" type="text/css" href="{{ .Consts.RootURL }}/admin/static/style.css?v={{ .AssetVer }}"> |
9 | | - <link rel="shortcut icon" href="{{ .Consts.RootURL }}/admin/static/favicon.png?v={{ .AssetVer }}" type="image/x-icon" /> |
| 7 | + <link rel="stylesheet" type="text/css" href="/admin/static/grid.css?v={{ .AssetVer }}"> |
| 8 | + <link rel="stylesheet" type="text/css" href="/admin/static/style.css?v={{ .AssetVer }}"> |
| 9 | + <link rel="shortcut icon" href="/admin/static/favicon.png?v={{ .AssetVer }}" type="image/x-icon" /> |
10 | 10 |
|
11 | | - <script>window._ROOT_URL = "{{ .Consts.RootURL }}";</script> |
12 | | - <script defer src="{{ .Consts.RootURL }}/admin/static/main.js?v={{ .AssetVer }}"></script> |
13 | | - <script defer src="{{ .Consts.RootURL }}/admin/static/alpine.js?v={{ .AssetVer }}"></script> |
| 11 | + <script>window._ROOT_URL = "";</script> |
| 12 | + <script defer src="/admin/static/main.js?v={{ .AssetVer }}"></script> |
| 13 | + <script defer src="/admin/static/alpine.js?v={{ .AssetVer }}"></script> |
14 | 14 |
|
15 | 15 | {{ range $j := .Consts.AdminAssets -}} |
16 | 16 | {{- if (hasSuffix ".js" $j) -}} |
|
26 | 26 | <header class="header"> |
27 | 27 | <div class="row"> |
28 | 28 | <div class="three columns logo"> |
29 | | - <a href="{{ .Consts.RootURL }}/admin"><img src="{{ .Consts.RootURL }}/admin/static/logo.svg?v={{ .AssetVer }}" alt="logo" /></a> |
| 29 | + <a href="/admin"><img src="/admin/static/logo.svg?v={{ .AssetVer }}" alt="logo" /></a> |
30 | 30 | <template x-if="Object.keys(loading).length > 0"><span class="loading"></span></template> |
31 | 31 | </div> |
32 | 32 | <nav class="eight columns nav"> |
33 | 33 | <a href="" @click.prevent="onNewEntry">Add new</a> |
34 | | - <a href="{{ .Consts.RootURL }}/admin/pending">Pending</a> |
| 34 | + <a href="/admin/pending">Pending</a> |
35 | 35 | </nav> |
36 | 36 | </div> |
37 | 37 | </header> |
38 | 38 |
|
39 | | - <form class="search" action="{{ .Consts.RootURL }}/admin/search" x-data="searchFormComponent()" @submit="onSearch"> |
| 39 | + <form class="search" action="/admin/search" x-data="searchFormComponent()" @submit="onSearch"> |
40 | 40 | <fieldset class="row"> |
41 | 41 | <div class="column four"> |
42 | 42 | <select name="from_lang" x-model="fromLang"> |
|
0 commit comments