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

Web Content urlTitles containing Slash characters (in Asset Publisher) shall work without parameters as a FriendlyURL



      I am submitting this feature request on behalf of our partners Nicolas Grue and Quang-Tu Le.

      Steps to reproduce:

      1. Create a web content, put "title / with slash" in it's title
      2. Check the DB for this web content's urlTitle
      3. Create a page, place an Asset Publisher on it
      4. Check the link of the "title / with slash" web content


      Current behavior:

      The URL contains additional assetEntryId parameters after the friendlyURL part (after the '?' character).

      For example an URL like:


      And the connecting assetEntryId parameter is:



      Expectation (quoted from the partner's message):

      Make sure urlTitle field is used in final URLs with no alteration (and with no need for an extra parameter). 
      This could be achieved by different ways. We can find 2 of them, but better options may be possible (considering support of slashes is still not the intended behaviour):

      Option 1: clean data 

      • replace or remove slashes in urlTitle before persistence in db 
      • legacy data : an upgrade process that would batch-update existing urlTitle containing a slash, the same way. 
      • legacy urls support: make sure that the extra parameter introduced by LPS-105044 still works (content is displayed when that parameter is present), wether urlTitle before it contains slashes or not (we believe it is the current behaviour, but it would be safer to check).

      Option 2: support both behaviours by configuration 

      • behaviour A: replace or remove slashes in urlTitle (like option 1) 
      • behaviour B: deal with slashes as LPS-105044 does. 
      • a config option or property allows to choose between A or B

      We think option 1 is more elegant/powerful, but option 2 would do the job.


          Issue Links



              support-lep@liferay.com SE Support
              jozsef.geczi Jozsef Geczi
              2 Vote for this issue
              2 Start watching this issue




                  Version Package