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

Include Short URL Formatter functionality for Liferay Document Library

    Details

    • Type: Feature Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Background
      When running Liferay with custom solutions for rewriting 'Documents and Media' links from a long URL to a short URL, it has been reported that breaking changes have been discovered due to the implementation of LPS-91413 - View in Context" link does not work for Documents pending in Workflow

      Request
      It would be useful to implement 'formatter' or 'processor' in Liferay which generates a short URL for a Documents and Media URL which handles requests for that short URL.

      Sample long URL:

      http://localhost:8080/c/document_library/find_file_entry?p_l_id=16&noSuchEntryRedirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fsearch%3Fp_p_id%3Dcom_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet_INSTANCE_PWKjaKWKTbhq%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_com_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet_INSTANCE_PWKjaKWKTbhq_mvcPath%3D%252Fview_content.jsp%26_com_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet_INSTANCE_PWKjaKWKTbhq_redirect%3D%252Fweb%252Fguest%252Fsearch%26_com_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet_INSTANCE_PWKjaKWKTbhq_assetEntryId%3D37320%26_com_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet_INSTANCE_PWKjaKWKTbhq_type%3Ddocument&fileEntryId=37318&inheritRedirect=true

      Sample short URL with applied formatting:

      http://localhost:8080/dl/xxxxxx

      The short URLs can be generated dynamically when a web page is displayed or stored as another field with the Document and Media entry (DLFileEntry) similar to the friendly URL field stored with Web Content articles.

      Additional
      In further support of this functionality, another previous case has been raised in LPS-95217 - Friendly URLs for documents and media.

      Useful Resources

      Thank you.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            philip.chapman Philip Chapman
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package