Issue Bug Closed

#32938Link to mounted shortcut page lacks &MP parameter

Xavier Perseguers 01/03/12, 08:22 updated 03/30/12, 11:45

Description

There is a bug when generating links to shortcut pages over a mounted page.

Page tree to reproduce the problem:

root
  |-- [1] website
  |         |-- [2] page 1
  |         |-- [3] page 2
  |         `-- [4] page 3 (not shown in menu, mount point to [5])
  `-- [5] shared pages
            |-- [6] normal page
            `-- [7] tools (shortcut to 1st child)
                      `-- [8] page X

Generate a double menu, one for pages of [1], one dedicated to pages under mount point [4] (which is not shown in first menu)

Expected:

Menu 1

  • /index.php?id=2 -> page 1
  • /index.php?id=3 -> page 2

Menu 2

  • /index.php?id=6&MP=5-4 -> normal page
  • /index.php?id=8&MP=5-4 -> tools

This works only when current page is [6]. What is generated for Menu 2 when current page is within [1] (“website”) is:

Menu 2 (BUG)

  • /index.php?id=6&MP=5-4 -> normal page
  • /index.php?id=8 -> tools

Thus when a link to a shortcut page is generated, it lacks the &MP parameter unless current page already contains the &MP parameter.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.