Confluence is not able to render and redirect user to URL that has javascript: in it.

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 6.15.4, 6.15.6, 7.20.2
    • Component/s: Content - Linking
    • None
    • 4
    • Severity 3 - Minor

      Issue Summary

      When a user added a URL that contains a Javascript, Confleucne is not able to render the link and there will be no respond when user click the link.

      Steps to Reproduce

      1. Create a new page
      2. Paste the following link
        https://<your_instance>.service-now.com/incident_list.do?sysparm_query=closed_atONLast%20week%40javascript%3Ags.beginningOfLastWeek()%40javascript%3Ags.endOfLastWeek()
        
      3. Save the page
      4. Click the link
      5. Click the ... in the Confluence page and select view page source
      6. You can see that Confluence render the link as following.
        <a>https://<your_instance>.service-now.com/incident_list.do?sysparm_query=closed_atONLast%20week%40javascript%3Ags.beginningOfLastWeek()%40javascript%3Ags.endOfLastWeek()</a>
        

        instead of

        <a href="https://<your_instance>.service-now.com/incident_list.do?sysparm_query=closed_atONLast%20week%40">https://<your_instance>.service-now.com/incident_list.do?sysparm_query=closed_atONLast%20week%40</a>
        

        The herf='URL' tag is missing when the link contains Javascript.

      Expected Results

      It will redirect user to the service now instance

      Actual Results

      Confluence is not redirecting user to the service now instance and there is no action perfomr when user click the link.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Assignee:
              Unassigned
              Reporter:
              Lipkent Ng (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: