gitea/web_src
Giteabot fb7f28e9a7
Fix gitea-origin-url with default ports (#29085) (#29088)
Backport #29085 by @silverwind

When setting `url.host` on a URL object with no port specified (like is
the case of default port), the resulting URL's port will not change.
Workaround this quirk in the URL standard by explicitely setting port
for the http and https protocols.

Extracted the logic to a function for the purpose of testing. Initially
I wanted to have the function in utils.js, but it turns out esbuild can
not treeshake the unused functions which would result in the
webcomponents chunk having all 2kB utils.js inlined, so it seemed not
worth.

Fixes: https://github.com/go-gitea/gitea/issues/29084

Co-authored-by: silverwind <me@silverwind.io>
2024-02-08 02:41:49 +00:00
..
css Make loading animation less aggressive (#28955) (#28956) 2024-01-27 20:38:14 +08:00
fomantic Remove fomantic `text` module (#26777) 2023-08-30 10:37:17 +00:00
js Fix gitea-origin-url with default ports (#29085) (#29088) 2024-02-08 02:41:49 +00:00
svg Use inline SVG for built-in OAuth providers (#25171) 2023-06-13 10:51:02 +00:00