Z2m web gui redirect via panel_custom.js broken

I've just noticed today that the z2m web gui redirect I have setup using the panel_custom.js does not redirect to z2m web gui page any longer. Not sure if it broke after updating to 2026.5 core. This is my current code.

panel_custom:
  - name: panel-redirect
    url_path: redirect-Zigbee2mqtt-controls
    sidebar_title: Z2M Controls
    sidebar_icon: mdi:graphql
    module_url: /local/custom_ui/panel-redirect.js
    config:
      target: /hassio/ingress/45df7312_zigbee2mqtt

Well if you are using the Z2M App, there's a button on the Z2M config page for that.
image

Otherwise these all work on mine, maybe it helps you.

1 Like

image
I saw that, but when I toggle it on and click on the link on the left sidebar, it just brings me back to z2mqtt config page. However, after a few hours it started to work.

I think the show in sidebar was introduced not too long ago and this recent core update deprecated the url that I have been using with the panel_custom.js file.