Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-50773

A leading slash must not be mandatory for an article's Friendly URL

    Details

      Description

      A Knowledge Base Article, whether added/modified manually or via the importer, must not be required to start with a slash '/' character.

      On importing a Knowledge Base Article that has a valid friendly URL value that has no leading slash character, the import fails. The following message is reported ...

      URL title must start with a '/' and contain only alphanumeric characters, dashes, and underscores

      Markdown files pass in the URL titles via an ID variable in their header ...

      # Installation and Setup [](id=installation-and-setup)

      This URL title specifies no leading slash; and that should be acceptable.

      To Reproduce:
      1. Add a KB folder and navigate into it.
      2. Import the attached ZIP into the KB.

      Actual results:
      The import fails and the following message is displayed in the portal ...

      URL title must start with a '/' and contain only alphanumeric characters, dashes, and underscores

      Expected results:
      A KB article titled _ Installation and Setup_ should import along with its content. On inspecting the KB article via Actions > Edit, the article's content should be present in the editor and the article's friendly URL should end with installation-and-setup. This URL title should not be truncated.

      Also, please make sure the article can be re-imported without creating a duplicate. Thanks.

        Attachments

        1. fixed.png
          fixed.png
          55 kB
        2. lp-6.2-discover-deployment.zip
          3.71 MB
        3. reproduced.png
          reproduced.png
          33 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 44 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M2