SmartLink - Unable to render pages that contains parameters on the URL

XMLWordPrintable

    • 1
    • Minor

      Issue Summary

      When a user insert a smart link using a Power BI url the iframe inserted do not contains all the parameters of the URL provided

      Steps to Reproduce

      1. Create a smart link
      2. enter a URL using the following format https://app.powerbi.com/view?r=XXXXXXX&pageName=YYYYYY
      3. Wait for the page to load

      Once you inspect the iframe inserted on the site you notice it does not contain the pageName paramenter

       

      On the HTTP requests executing to resolve the URL I can see that the response preview attribute do not have the parameter "pageName"

      fetch("https://xxxxxx.atlassian.net/gateway/api/object-resolver/resolve/batch", {
        "headers": {
          "accept": "application/json",
          "cache-control": "no-cache",
          "content-type": "application/json",
          "origin-timezone": "Europe/Amsterdam",
          "sec-ch-ua": "\"Google Chrome\";v=\"129\", \"Not=A?Brand\";v=\"8\", \"Chromium\";v=\"129\"",
          "sec-ch-ua-mobile": "?0",
          "sec-ch-ua-platform": "\"macOS\"",
          "x-product": "CONFLUENCE"
        },
        "referrer": "https://xxxxx.atlassian.net/",
        "referrerPolicy": "origin",
        "body": "[{\"resourceUrl\":\"https://app.powerbi.com/view?r=xxxxxxx&pageName=yyyyyy\"}]",
        "method": "POST",
        "mode": "cors",
        "credentials": "omit"
      });
      [
          {
              "body": {
                  "meta": {
                      "resourceType": "0",
                      "visibility": "public",
                      "access": "granted",
                      "follow": true,
                      "auth": [],
                      "definitionId": "public-object-provider",
                      "key": "public-object-provider"
                  },
                  "data": {
                      "@type": "Object",
                      "@context": {
                          "@vocab": "https://www.w3.org/ns/activitystreams#",
                          "atlassian": "https://schema.atlassian.com/ns/vocabulary#",
                          "schema": "http://schema.org/"
                      },
                      "url": "https://app.powerbi.com/view?r=xxxxxx&pageName=yyyy",
                      "name": "Power BI Report",
                      "summary": "Report powered by Power BI",
                      "generator": {
                          "@type": "Object",
                          "name": "app.powerbi.com",
                          "icon": {
                              "@type": "Image",
                              "url": "https://app.powerbi.com/images/PowerBI_Favicon.ico"
                          }
                      },
                      "icon": {
                          "@type": "Image",
                          "url": "https://app.powerbi.com/images/PowerBI_Favicon.ico"
                      },
                      "image": {
                          "@type": "Image",
                          "url": "http://content.xxxx.com/resource/xxx/images/PowerBI125x125.6906aa6687c696ce3dcb.png"
                      },
                      "preview": {
                          "@type": "Link",
                          "href": "https://app.powerbi.com/view?r=xxxxxxx",
                          "atlassian:supportedPlatforms": [
                              "web"
                          ]
                      }
                  }
              },
              "status": 200
          }
      ]

      Expected Results

      When you use a link as smart link it should preserve the parameters of the url

      Actual Results

      Currently the database and is storing the url as provided, but once the render process finishes the iframe inserted on the page do not contains the parameters in the SRC URL as the iframe componenet props are taking the value from the preview atribure displayed on the sample server response above.

      ........
      "preview": {
                          "@type": "Link",
                          "href": "https://app.powerbi.com/view?r=xxxxxxx",
                          "atlassian:supportedPlatforms": [
                              "web"
                          ]
                      }
      .......... 

      Workaround

      Use an iframe instead, behaviour does not change if I user the link directly on a page, a card on a page or a new a smart link

            Assignee:
            Unassigned
            Reporter:
            Michael Gonzalez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: