Skip to content

Normalize server URLs before connecting#861

Merged
dweymouth merged 2 commits intomainfrom
feat/url-normalization
Feb 18, 2026
Merged

Normalize server URLs before connecting#861
dweymouth merged 2 commits intomainfrom
feat/url-normalization

Conversation

@dweymouth
Copy link
Copy Markdown
Owner

@dweymouth dweymouth commented Feb 18, 2026

Fixes #304

Prepend http:// when no scheme is present and strip trailing slashes for all server types. For Jellyfin, additionally strip /web/index.html and /web path suffixes that users copy from the browser URL bar.

Normalization is applied in ServerManager.connect() on the by-value parameter, so stored config is never mutated.

dweymouth and others added 2 commits February 17, 2026 18:17
Prepend http:// when no scheme is present and strip trailing slashes
for all server types. For Jellyfin, additionally strip /web/index.html
and /web path suffixes that users copy from the browser URL bar.

Normalization is applied in ServerManager.connect() on the by-value
parameter, so stored config is never mutated.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@dweymouth dweymouth changed the title Fix #304: normalize server URLs before connecting Normalize server URLs before connecting Feb 18, 2026
@dweymouth dweymouth merged commit 9dd606c into main Feb 18, 2026
11 checks passed
@dweymouth dweymouth deleted the feat/url-normalization branch February 18, 2026 03:34
M0Rf30 pushed a commit to M0Rf30/supersonic that referenced this pull request Mar 9, 2026
* Fix dweymouth#304: normalize server URLs before connecting

Prepend http:// when no scheme is present and strip trailing slashes
for all server types. For Jellyfin, additionally strip /web/index.html
and /web path suffixes that users copy from the browser URL bar.

Normalization is applied in ServerManager.connect() on the by-value
parameter, so stored config is never mutated.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* move url normalize funcs

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could not reach server - please normalize URLs while adding a server

1 participant