Don't take "Create Article" menuitem for an article edit#16756
Don't take "Create Article" menuitem for an article edit#16756rdeutz merged 3 commits intojoomla:stagingfrom
Conversation
|
I just tested this on a client dev site that had the exact problem described. The new files work perfectly and resolve the issue. How many more people do you need to test (or sites) before it can be included with the next release? Let me know and I'll try to find people. |
|
hi jenn, |
|
I just tested this on a client dev site that had the exact problem described. The new files work perfectly and resolve the issue. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16756. |
|
I have tested this item ✅ successfully on c25284a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16756. |
|
Hi Nicola, |
|
I was having this problem with a production site and tested this solution. It successfully resolved the problem. Jenn thanks for letting me know about this solution. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16756. |
|
@jim-porter at the top of https://issues.joomla.org/tracker/joomla-cms/16756 login and mark that you've tested successfully. Can you see where it has Successful: 1 bayareajenn at the top of the page? We need you to say you tested successfully too! Thank you for testing this Jim! This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16756. |
|
I have tested this item ✅ successfully on c25284a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16756. |
|
@Bakual is it to late to get this issue in with 3.7.3? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16756. |
|
RTC after two successful tests. |
|
@bayareajenn hopefully @rdeutz as Release Leader can make this Decision (but yesterday "Release Candidate 1" was going out). |
|
@franz-wohlkoenig I know. I saw the announcement earlier. I tried to get more testers yesterday but it didn't work out. We'll see what @rdeutz says and if it's not meant to be, it's not meant to be. Thanks! |
|
This patch is real great! |
|
Was not in time for the RC release, I will do my own test and then decide if I merge it into 3.7.3. |
|
Thank you, @rdeutz ! |
|
I was also having the same issue in Article Editing, switching category. I askedo here proposed and it worked! |
|
Unfortunately this broke my 'Add article' menu link. The &a_id=0 caused a redirect to the non-SEF url of the current page. Very strange. Commenting out the |
|
@netamity can you please open a new Issue? Thanks. |
JoomlaCode is not used for bug reports anymore (and hasn't been for years). Filing issues here on GitHub (or https://issues.joomla.org/ which is just a wrapper for GitHub mainly) is the way to do it. |
Pull Request for Issue #12687 and #16612 .
Summary of Changes
This adjusts the ContentRouter so it only takes the "Create Article" menuitem for new articles, not when editing an existing article. I adjusted the Viewconfiguration for that and added
&a_id=0to the URL for the view in the controller.Please note that most of the change are only within com_content, but there is one change in the menu rule which may affect other extensions. But only if they use those new JComponentRouterView stuff and I think the change should be fine. If you come into that part of the code and don't have a key set in the menuitem, it will not be stored into the needles array and never be used for the URL. So that looked wrong anyway.
Testing Instructions
Expected result
Actual result
Any edit links use the "Create Article" menuitem
Documentation Changes Required
Don't think there is any doc at all for this router stuff.