Use rel_url for looking up frontend panels (#90149)
* Use rel_url for looking up frontend panels request.url builds a new URL every time where-as rel_url is always available https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.BaseRequest.rel_url * Use rel_url for looking up frontend panels request.url builds a new URL every time where-as rel_url is always available https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.BaseRequest.rel_urlpull/90118/head
parent
12352b2ce1
commit
9878738321
|
@ -530,8 +530,9 @@ class IndexView(web_urldispatcher.AbstractResource):
|
|||
"""
|
||||
if (
|
||||
request.path != "/"
|
||||
and len(request.url.parts) > 1
|
||||
and request.url.parts[1] not in self.hass.data[DATA_PANELS]
|
||||
and (parts := request.rel_url.parts)
|
||||
and len(parts) > 1
|
||||
and parts[1] not in self.hass.data[DATA_PANELS]
|
||||
):
|
||||
return None, set()
|
||||
|
||||
|
|
Loading…
Reference in New Issue