Uploaded image for project: 'ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)'
  1. ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  2. LEP-2203

When you delete a tab in a community, it should bring you back to the first page in the community, not the Home URL

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.2.2, 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      If you are in the "Support" community, and you delete a tab using the "X" next to the name of the tab, it brings you back to the Home URL.

      For example, if you are developing on your local machine, it might bring you back to localhost:8080.

      Note: This applies primarily to the Classic theme because the classic theme allows you to add and remove tabs/pages without having to click Page Settings.

      The fix is to change the return value of onComplete function in portal.js:

      From this:

      onComplete: function() {
      window.location = themeDisplay.getURLHome();
      }

      to this:

      onComplete: function() {
      window.location = themeDisplay.getURLHome() + "/c/portal/layout?p_l_id=" + params.ownerId + ".1";
      }

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            edward.shin Edward Shin (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                4.2.2
                4.3.0