Widget as popup inside a page, followed by a page reload results in a 'not found'

the scenario is the following…

  1. I open a page called ‘app’. This will generate a browser url like ‘https://openhab.xyz.de/page/app’
  2. If I open a widget as a popup inside this page, it will generate a url like ‘https://openhab.xyz.de/page/app/popup/widget:app_technic’
  3. If I press reload, it results in a error page with the message like below

A pefect behavior would be, that the widget is reopened in a popup. A good behavior would be, that the page ‘app’ is loaded.

The code for opening the popup

- component: oh-link
  config:
    action: popup
    actionModal: widget:app_technic
    text: "Test"

has anyone an idea?

The additional location on the url for the popup is specific to the mechanism of the OH popup action. It does not happen if a widget popup is created from scratch using an f7-popup and activated by the f7 popup methods. So, that means this reload behavior has to be governed directly within MainUI.

I would say this should be a bug report to start a discussion on the UI repo about the best way to handle this.

Unfortunately, you cannot use f7.popup.create to load a vue component. I did submit a PR (useWidgetAction: Don't save popup/sheet/popover URL in the browser history by jsjames · Pull Request #4636 · openhab/openhab-webui · GitHub) which prevents saving the url in the browser history so when you navigate to the popup and then hit refresh, it will load the original url, not the url of the popup/popover/sheet.