Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26354

Autolink fails if you try to link content in your own site

    XMLWordPrintable

    Details

      Description

      The autolink feature in eZOE automatically creates text as link if you paste a link in your xml content and hit enter afterwards, without the need to use the "Insert link" button.

      If you try to use autolink with content from your own site, the feature will generate an invalid link pointing to null.

      Note that, if you use urls to content of your own site through the "Insert link" button, the link will be created without any problems.

      In the query below, the lines are related to:

      1. The link "_http://4-7.ez/ezdemo_site_admin/Getting-Started_" pasted directly in the xml and handled by autolink.
      2. A link to a random site pasted exactly in the same way of the previous line.
      3. The link "http://4-7.ez/ezdemo_site_admin/Getting-Started_" inserted through "_Insert link" button.
      select is_valid, url from ezurl;
      +----------+-------------------------------------------------+
      | is_valid | url                                             |
      +----------+-------------------------------------------------+
      |        1 | null                                            |
      |        1 | https://docs.python.org/2/library/os.path.html  |
      |        1 | http://4-7.ez/ezdemo_site_admin/Getting-Started |
      +----------+-------------------------------------------------+
      Steps to reproduce
      • Created a new article and past in the body any link to any existent ezp content.
      • Hit enter to the link highlight to be activated.
      • Publish the article and check the link in the published version.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: