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

Links to anchors with spaces in the name do not render correctly

      The following wiki url with anchor is not rendered in 2.x
      more

            [CONFSERVER-4925] Links to anchors with spaces in the name do not render correctly

            This issue was fixed at some point in the dim and distant past. Current versions of Confluence will render these links without any problems in the RTE.

            Steve Haffenden (Inactive) added a comment - This issue was fixed at some point in the dim and distant past. Current versions of Confluence will render these links without any problems in the RTE.

            Actually I am going to reopen this.

            I don't think Confluence should escape URLs for you automatically for the reason given previously. But Confluence shouldn't be stripping the spaces out of malformed URLs. Most browsers WILL automatically correct common URL errors (including the example given) so if we leave the URL alone we hand off the work to the browser.

            Christopher Owen [Atlassian] added a comment - Actually I am going to reopen this. I don't think Confluence should escape URLs for you automatically for the reason given previously. But Confluence shouldn't be stripping the spaces out of malformed URLs. Most browsers WILL automatically correct common URL errors (including the example given) so if we leave the URL alone we hand off the work to the browser.

            But the aim of wiki is to help to type such urls, or copy paste and forgot, why just not to escape?

            Oleksandr Maksymchuk added a comment - But the aim of wiki is to help to type such urls, or copy paste and forgot, why just not to escape?

            URLs used in the markup must be valid. Spaces in URLs are not valid and must be escaped. If valid external urls are copied and pasted exactly this problem should not occur. Trying to automatically fix invalid URLs will probably just lead to a never ending number of conditions to check for.

            Christopher Owen [Atlassian] added a comment - URLs used in the markup must be valid. Spaces in URLs are not valid and must be escaped. If valid external urls are copied and pasted exactly this problem should not occur. Trying to automatically fix invalid URLs will probably just lead to a never ending number of conditions to check for.

            Yep, that's probably the way to go.

            Jeremy Higgs added a comment - Yep, that's probably the way to go.

            BTW, encoded url/anchor works well, so this is rendered OK:
            http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access
            Can encoding be done automatically?

            Oleksandr Maksymchuk added a comment - BTW, encoded url/anchor works well, so this is rendered OK: http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access Can encoding be done automatically?

            Jeremy Higgs added a comment - Actually, it seems that the spaces in the anchor are the problem: This doesn't work: http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring Manager Application Access This does: http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#ConfiguringManagerApplicationAccess

              shaffenden Steve Haffenden (Inactive)
              dc5b660cbf26 Oleksandr Maksymchuk
              Affected customers:
              2 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: