Skip to content

[router] Create routes without a menu item with the id and not alias#20117

Closed
laoneo wants to merge 2 commits intojoomla:stagingfrom
Digital-Peak:j3/fix/router/no/menu
Closed

[router] Create routes without a menu item with the id and not alias#20117
laoneo wants to merge 2 commits intojoomla:stagingfrom
Digital-Peak:j3/fix/router/no/menu

Conversation

@laoneo
Copy link
Copy Markdown
Member

@laoneo laoneo commented Apr 9, 2018

Alternative for pull request #19280.

Summary of Changes

When there is no menu item for category/categories/article view in com_content and the option Remove IDs is enabled then a link like the following is created:
/index.php/en/component/content/article/article-en-gb?catid=8

This returns an error 404. This pr changes the url to contain the id instead of the alias like:
/index.php/en/component/content/article/1?catid=8

It is a break as it is ignoring the setting Remove IDs.

Testing Instructions

  • Create an article
  • Create a latest articles module
  • Create a wrapper menu item
  • Set it as default menu item
  • Unpublish the Home menu item
  • Open the front end
  • Click on the article link in the module

Expected result

The article is opened.

Actual result

A 404 is thrown.

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Apr 9, 2018

Closing it in favor of #19280.

@laoneo laoneo closed this Apr 9, 2018
@laoneo laoneo deleted the j3/fix/router/no/menu branch April 9, 2018 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants