Atlassian Connect App - Web Item opens outside Jira

Hello everyone,
I’m developing an app using Atlassian Connect with Spring.

In my atlassian-connect.json I’ve declared a web-sections with two web-items:

"modules": {
    "webSections": [
      {
        "key": "app-menu-section",
        "location": "admin_plugins_menu",
        "name": {
          "value": "My App"
        }
      }
    ],
    "webItems": [
      {
        "key": "acn-index",
        "location": "admin_plugins_menu/app-menu-section",
        "name": {
          "value": "Main Page"
        },
        "url": "/home?xdm_e=${host}"
      },
      {
        "key": "configuration-section-link",
        "location": "admin_plugins_menu/app-menu-section",
        "name": {
          "value": "Configurations"
        },
        "url": "/app-config"
      }
    ],
    ....

When I click one of the web-items I’m redirected to my page outside Jira, so I land at https://5413-93-123-123-123.ngrok-free.app/home.
Why? Why don’t open my page inside the Jira domain?

More strange is: If I use the postInstallPage module to open the same page, It is opened inside Jira!

"postInstallPage": {
      "url": "/home",
      "key": "acn-index",
      "name": {
        "value": "Index"
      }
    },

Can anyone help me understand and fix this?

Thanks,

D

Does this happen only to me? :weary:

Instead of using webItems - use https://developer.atlassian.com/cloud/jira/platform/modules/admin-page/ or https://developer.atlassian.com/cloud/jira/platform/modules/page/

/Daniel