Skip to content

Commit 7ddc11d

Browse files
authored
Simplify the error message when index.js couldn't be loaded (#22354)
In some cases, the loading failure of `index.js` is not related to the ROOT_URL directly, ex: https://gitea.com/gitea/helm-chart/issues/392 If the user's reversed proxy is mis-configured: `http://public-domain/gitea/xxx` -> `http://gitea:3000/gitea/xxx`, it also causes the loading failure. So this PR removes the ROOT_URL related tip from the error message.
1 parent d9f748a commit 7ddc11d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/footer.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script src='https://hcaptcha.com/1/api.js' async></script>
2323
{{end}}
2424
{{end}}
25-
<script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + ', please make sure the asset files can be accessed and the ROOT_URL setting in app.ini is correct.')"></script>
25+
<script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + '. Please make sure the asset files can be accessed.')"></script>
2626
{{template "custom/footer" .}}
2727
</body>
2828
</html>

0 commit comments

Comments
 (0)