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

Use Relative URLs instead of Absolute URLs

    Details

    • Type: Feature Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.1.20 EE GA2
    • Fix Version/s: None
    • Labels:
    • Environment:
      LIFERAY VERSION: 6.1 GA 2
      OPERATING SYSTEM: Red Hat
      APPLICATION SERVER: JBoss 5.x
      JAVA VIRTUAL MACHINE: Java 6
      DATABASE: Oracle 11g

      Description

      REQUEST
      The Absolute URL inserts the domain in links where it can sometimes be undesirable. A Relative URL will show the correct context path regardless of domain.

      The following implementations could address this;

      1) Stop using Absolute URLs altogether. This would solve a ton of security issues, simplify the code, and ensure that the code works regardless of the environment.

      2) Create a portal property that allows Relative URLs to be used instead of Absolute URLs. With a portal property you could simply change the method above to return an empty string if it is set to use Relative URLs.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              marco.abamonga Marco Abamonga
              Votes:
              56 Vote for this issue
              Watchers:
              31 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package