mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 08:33:31 +01:00
The gallery mock set hass.auth.data.hassUrl to an empty string, which caused brandsUrl() to throw when constructing a URL via new URL(base, ''). In production hassUrl is always a valid URL, so the mock now uses location.origin to match real behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>