App navigation issue in Confluence cloud

I am trying to add one navigation in Confluence cloud from the user profile menu. When I click on the navigation link, the navigation url is changing to {appBaseUrl} instead of {cloudInstanceUrl}. Below is the configuration I am using. Let me know if I am missing any configuration.

For example, my cloud instance is example.atlassian.com, and my app baseUrl is koti.web.com. When I open the app navigation from the profile dropdown, instead of navigating to example.atlassian.com/app-navigation-link-here, the action is navigating to koti.web.com/app-navigation-link-here

"webItems" : [
{
        "location": "system.user/user-content",
        "url": "/app-navigation-link-here",
        "key": "app-page",
        "name": {
          "value": "App navigation here"
        },
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      }
]

Thanks in advance!!

Hi Koti. Could you try to add "context": "product" to your webItem ?

      {
        "location": "system.user/user-content",
        "url": "/app-navigation-link-here",
        "key": "app-page",
        "context": "product", // Added
        "name": {
          "value": "App navigation here"
        },
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      },

Reference: https://developer.atlassian.com/cloud/confluence/modules/web-item/ under Properties/Context

2 Likes

Thanks @Corentin for the help!