User tests: Successful: Unsuccessful:
If there is no menu item for supplied layout then use fallback to menu item without layout, for all cases.
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.
Category List
for Uncategorised category.Uncategorised
category. Set article text:<p>Uncategorised with layout explicitly</p>
<p><a href="index.php?option=com_content&view=category&id=2&layout=default">Layout default</a></p>
<p><a href="index.php?option=com_content&view=category&id=2&layout=blog">Layout blog</a></p>
<p>Link to readmore with layout default <a href="index.php?option=com_content&view=article&id=1&catid=2&layout=default">Article</a></p>
Go to home page and check above links from the article
/2-uncategorised
Check article link for button print
. (stay in home page - featured view)
Before patch links do not use menu item "Uncategorised".
After patch links uses the menu item.
&layout=default
will be generated correctly, I mean the correct menu item will be usedCategory | ⇒ | Libraries Unit Tests |
Status | New | ⇒ | Pending |
Yes.
../index.php/2-uncategorised
This is only id-category
in url.
This means that menu item with title "Uncategorised" is not used.
You can add a module, only for menu item "Uncategorised" to see it more clearly.
Link that uses menu item would look like ../index.php/uncategorised
Link that does not use menu item (except default one) look like ../index.php/2-uncategorised
I have tested this item
After patch print
linking to ../index.php/category-list/1-test-article?tmpl=component&print=1
Each article item linking to ../index.php/category-list
@ciar4n can you please explain how you have tested as i didn't understand original Test Instructions.
@ciar4n can you please explain how you have tested as i didn't understand original Test Instructions.
I think now test instructions should be more clear.
The main idea is, the links in article content should use menu item 'Uncategorised' when you are in featured view.
Below links come from article content from test instruction.
Go to com_content featured view, usual home page and check urls:
Links before:
Layout default => index.php/2-uncategorised
Layout blog => index.php/2-uncategorised?layout=blog
Article => index.php/2-uncategorised/1-article
Button Print => index.php/2-uncategorised/1-article?tmpl=component&print=1
Links after:
Layout default => index.php/uncategorised
Layout blog => index.php/uncategorised
Article => index.php/uncategorised/1-article
Button Print => index.php/uncategorised/1-article?tmpl=component&print=1
@csthomas thanks for Explanation.
Using sample data set 1 archived Article to "Published" and Featured and created a Menu "Category List" using Category "Uncategorised".
Links without PR:
So i didn't get what to test.
Using sample data set 1 archived Article to ...
Install joomla without sample data or if you only have installation with sample data then unpublish all Category Blog menu items before test.
I know that article/category links from featured view work, but links from example article text that I supplied do not work.
Links without PR:
- Menu: /index.php/en/category-list/67-whats-new-in-15
On featured view before patch, Print Button is:
/index.php/en/9-uncategorised/67-whats-new-in-15?tmpl=component&print=1
After patch it should be:
/index.php/en/uncategorised/67-whats-new-in-15?tmpl=component&print=1
The difference is 9-
.
Unpublished Blog-Menues, also the Menu-List for uncategoriced-Category.
Using PR got for Print: /index.php/en/allcategories-en-gb/9-uncategorised/67-whats-new-in-15?tmpl=component&print=1
(also after clear Browser-Cache).
One Menu for Category List for Uncategorised has to stay published.
Others menus for category or categories views should has to be unpublished.
All Category- and Categories-Menues are unpublished, only one Category-List-Menu for "Uncategorised".
Without PR at "Print" got: /index.php/en/category-list/67-whats-new-in-15?tmpl=component&print=1
Do you you get that link when you are on featured view?
Menu Item Type: Category List, Article: Featured is set on Yes
. Fresh Install staging of Today.
All is ok. The difference should be when you are on featured view.
Before PR:
/index.php/en/9-uncategorised/67-whats-new-in-15?tmpl=component&print=1
- wrong link, which I want to fix/index.php/en/category-list/67-whats-new-in-15?tmpl=component&print=1
- okAfter PR:
/index.php/en/category-list/67-whats-new-in-15?tmpl=component&print=1
- ok
/index.php/en/category-list/67-whats-new-in-15?tmpl=component&print=1
- ok
I have tested this item
Using PR:
/index.php/en/category-list/67-whats-new-in-15?tmpl=component&print=1
index.php/en/category-list/67-whats-new-in-15
toindex.php/en/67-whats-new-in-15
got/index.php/en/category-list/67-whats-new-in-15?tmpl=component&print=1
Thanks for Patience @csthomas
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
Thanks @ciar4n and @franz-wohlkoenig for tests. Despite my poor English skills, this PR has been tested.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-10-27 13:34:46 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
Before patch both items have uncategorised (../index.php/2-uncategorised) ?