diff --git a/templates/base/head_script.tmpl b/templates/base/head_script.tmpl
index de77856d4b2de..efe58dcc1a50f 100644
--- a/templates/base/head_script.tmpl
+++ b/templates/base/head_script.tmpl
@@ -46,4 +46,4 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
{{/* in case some pages don't render the pageData, we make sure it is an object to prevent null access */}}
window.config.pageData = window.config.pageData || {};
-
+
diff --git a/web_src/js/custcomp/GiteaOriginUrl.js b/web_src/js/webcomponents/GiteaOriginUrl.js
similarity index 100%
rename from web_src/js/custcomp/GiteaOriginUrl.js
rename to web_src/js/webcomponents/GiteaOriginUrl.js
diff --git a/webpack.config.js b/webpack.config.js
index e255f2d7f14bf..2ac463abef2b6 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -59,8 +59,8 @@ export default {
fileURLToPath(new URL('web_src/fomantic/build/semantic.css', import.meta.url)),
fileURLToPath(new URL('web_src/less/index.less', import.meta.url)),
],
- custcomp: [
- fileURLToPath(new URL('web_src/js/custcomp/GiteaOriginUrl.js', import.meta.url)),
+ webcomponents: [
+ fileURLToPath(new URL('web_src/js/webcomponents/GiteaOriginUrl.js', import.meta.url)),
],
swagger: [
fileURLToPath(new URL('web_src/js/standalone/swagger.js', import.meta.url)),