Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-3613

Friend URL Documentation for Instanceable Portlets

    Details

      Description

      For Making URL's Friendly there is a lack of documentation for a few points. This stems from findings of LPS-72072.

      1. I had a pitfall in my routes.xml where I had appended a trailing "/" to the pattern.
        • This prevented the request from identifying the correct route when it tries to add the parameters behind the scenes.
        • The URL converted correctly, hit the correct portlet, but never made the right request. the parameters never made it into the request.
      2. The documentation does not have instructions for friendly URL's for instanceable portlet.
        • Our 6.1 documentation did mention we have the instaceId but doesn't exactly say how the routes would match the instance ID.
        • The requests looks for the userIdAndInstanceId parameter which is supposed to be have the value of instanceId.
        • The portlet routes.xml simply needs a variant of the instanceId in the pattern:
          <pattern>/{userIdAndInstanceId}/render-it</pattern>
          <!-- OR -->
          <pattern>/{instanceId}/render-it</pattern>
          <!-- OR-->
          <pattern>/{p_p_id}/render-it</pattern>
          

      Feel like the documentation would great benefit if we include sections for common pitfalls and the bit about instanceable portlets.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              richard.sezov Rich Sezov
              Reporter:
              shanon.mathai Shanon Mathai
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.x
                  7.1.x