Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-8477

Don't change my code, especially when it is within an {html} macro!

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 3.5
    • None
    • None

    Description

      My links are getting manipulated when I submit them.
      If I write this link:

      {html}<A href="/display/test/testpage">Test Page</A>{html}

      it gets changed to:

      {html}<A href="http://(my ip address)/display/test/testpage">Test Page</A>{html}

      This would not be a big deal except that the wiki may change to a different server or the server may get a different ip address in the future, which would break all these links.

      Another annoying example:
      I am using the Top and Left Navigation theme and wanted to modify the Navigation to show submenus. Here is the code:

      {html}<h5><a href="#" onCLick="toggleVisibility('menunav'); return false;"><img src="/images/icons/docs_16.gif" width=16 height=16 border=0 align=absmiddle > Show Menu</a></h5>{html}

      Upon submit, the code is changed to this:

      {html}<H5><A href="http://(my ip address)/pages/editpage.action#" onclick="return true;toggleVisibility('menunav'); return false;"><IMG align="absMiddle" border="0" height="16" src="http://(my ip address)/images/icons/docs_16.gif" width="16"></IMG> Show Menu</A></H5>{html}

      Why is the return:true added to my onclick? Why is the editpage.action URL added to my #? Why mess with my code? Just leave it alone.

      Attachments

        Activity

          People

            don.willis@atlassian.com Don Willis
            f0e94db2263c Joe
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: