? ? Pending

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
7 Oct 2017

Summary of Changes

If there is no menu item for supplied layout then use fallback to menu item without layout, for all cases.

On joomla 3.8.1 with modern routing:

For example, a menu item with type Category List has the link index.php?option=content&view=category&id=2 to "Uncategorised" category.
The sef URL looks like 'index.php/uncategorised'

  • If we create an article with link index.php?option=content&view=category&id=2&layout=blog and there is no any menu item with layout blog then above menu item won't be used.
    If there exists at least one blog for other category then the menu item will be found.

  • If we add url like index.php?option=content&view=category&id=2&layout=default to the article then menu item won't be found.

Testing Instructions

  1. Install staging joomla without sample data.
  2. Create menu item with type Category List for Uncategorised category.
  3. Create featured article in Uncategorised category:
<p>Uncategorised with layout explicitly</p>
<p><a href="index.php?option=com_content&amp;view=category&amp;id=2&amp;layout=default">Layout default</a></p>
<p><a href="index.php?option=com_content&amp;view=category&amp;id=2&amp;layout=blog">Layout blog</a></p>
<p>Link to readmore with layout default <a href="index.php?option=com_content&amp;view=article&amp;id=1&amp;catid=2&amp;layout=default">Article</a></p>
  1. Change routing for com_content component to modern/experimental.

  2. Go to home page and check article links.

  3. Check article link for button print. (stay in home page - featured view)

  4. Before patch links does not use menu item "Uncategorised".

  5. After patch links uses the menu item.

avatar joomla-cms-bot joomla-cms-bot - change - 7 Oct 2017
Category Libraries Unit Tests
avatar csthomas csthomas - open - 7 Oct 2017
avatar csthomas csthomas - change - 7 Oct 2017
Status New Pending
avatar csthomas csthomas - change - 8 Oct 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-10-08 20:22:36
Closed_By csthomas
Labels Added: ? ?
avatar csthomas csthomas - close - 8 Oct 2017
avatar csthomas csthomas - change - 16 Oct 2017
The description was changed
avatar csthomas csthomas - edited - 16 Oct 2017

Add a Comment

Login with GitHub to post a comment