Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4111

Link construct uses link text rather than link target when link text 'looks' like a URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 1.8.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      SunOS 5.11 snv_106 i86pc i386 i86pc
      Apache 6.0.18
      Java 1.6.0_13
      Firefox 3.0.6
    • keywords:
      link text target URL
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      I don't know if this is a bug, or the intended behaviour.

      If I create a link in XWiki syntax 2.0 like this;

      [[http://www.google.com>>http://www.yahoo.com]]
      

      The link is actually to http://www.google.com not to the link target, http://www.yahoo.com.

      If the http:// prefix is removed, like this;

      [[www.google.com>>http://www.yahoo.com]]
      

      then the link is to yahoo, as expected.

      I guess it may be a like this to help prevent phishing, but I noticed it while migrating ~8000 page from another system into XWiki. I remap links to the new target, but those which use the URL as the link text still point to the old target, despite following the syntax correctly.

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            cmp Chris Phelan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: