No Code Attached Yet bug
avatar AkameOuO
AkameOuO
28 Mar 2025

Steps to reproduce the issue

  1. Open an article that has its own menu item in the frontend
  2. Click edit button
  3. Click Save

Expected result

After the article is saved, it keeps in the edit page.

Actual result

After the article is saved, it redirects to the home page.

System information (as much as possible)

Joomla 5.2.5
php 8.4.5
Mysql 8.1.0

Additional comments

avatar AkameOuO AkameOuO - open - 28 Mar 2025
avatar joomla-cms-bot joomla-cms-bot - change - 28 Mar 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Mar 2025
avatar AkameOuO AkameOuO - change - 28 Mar 2025
The description was changed
avatar AkameOuO AkameOuO - edited - 28 Mar 2025
avatar AkameOuO AkameOuO - change - 28 Mar 2025
Title
[5.2] Unexpected redirect after article save in frontend
[5.2] Unexpected redirect after saving article in frontend
avatar AkameOuO AkameOuO - edited - 28 Mar 2025
avatar fgsw
fgsw - comment - 28 Mar 2025

Issue confirmed using Save. Hit Save & Close article is shown as expected in the menu item.

Test by using blog sample date: "Typography (en-GB)".

avatar richard67 richard67 - change - 28 Mar 2025
Labels Added: bug
avatar richard67 richard67 - labeled - 28 Mar 2025
avatar gagan3221
gagan3221 - comment - 28 Mar 2025

Looking continously into this . Hoping to find fix soon :)

avatar dpollez
dpollez - comment - 29 Mar 2025

I can confirm this behavior, hereunder my now closed yesterday’s post (#45238) with the same issue:

Steps to reproduce the issue

New minimal Joomla 5.x website with a few articles:
Two pages: Home and Blog.
Two menus:
Main menu, visible on every page, with Home, Login and Blog
Blog menu, only visible on the Blog page, menu items not important
Log in as Publisher, go to Blog page and click Edit on an article.
=> Everything perfect, edit window appears, Main menu and Blog menu visible
=> URL = domain.com/blog?view=form&layout=edit…
Click save
=> Problem: Blog menu no longer visible!
=> URL = domain.com/?view=form&layout=edit
By clicking “Save” (or “Save as copy”), you end up on the Home page and while the Blog page modules are no longer visible (here only the Blog menu), those on the homepage are now!
But most users (editors) save an article in between and then end up in a completely different environment, which is extremely confusing.
After “Save & Close” or “Cancel” however, you do stay in the same menu item, here Blog, which is what one would normally expect after “Save” (or “Save as copy”).

Expected result

After “Save”, “Save & Close”, “Save as copy” or “Cancel: stay in the same menu item, not going to the Homepage

Actual result

By clicking “Save” or “Save as copy”, you end up on the Home page and while the Blog page modules are no longer visible, those on the homepage are now!
After “Save & Close” or “Cancel” however, you do stay in the same menu item.

System information (as much as possible)

PHP Built On: Linux ....com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
Database Type: mysql
Database Version: 10.6.21-MariaDB
Database Collation: latin1_swedish_ci
Database Connection Collation: utf8mb4_general_ci
Database Connection Encryption: None
Database Server Supports Connection Encryption: No
PHP Version: 8.2.27
Web Server: Apache
WebServer to PHP Interface: litespeed
Joomla! Version: Joomla! 5.2.5 Stable [ Uthabiti ] 11-March-2025 16:00 GMT
Joomla Backward Compatibility Plugin: Enabled (classes_aliases:"1", es5_assets:"1")
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0

Additional comments

avatar QuyTon QuyTon - change - 1 Apr 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-04-01 14:06:46
Closed_By QuyTon
avatar QuyTon QuyTon - close - 1 Apr 2025
avatar QuyTon
QuyTon - comment - 1 Apr 2025

Please test PR ##45254. Thanks.

avatar dpollez
dpollez - comment - 1 Apr 2025

I would really like to try this out but don't really know how, where can I find this somewhere?
Thanks
Didier.

avatar AkameOuO
AkameOuO - comment - 2 Apr 2025
avatar dpollez
dpollez - comment - 2 Apr 2025

Problem apparently not solved with the update, the behavior of the different actions (save, save and close...) remain unchanged.
I downloaded file Joomla_5.3.0-beta4-dev+pr.45254-Development-Update_Package.zip
And applied the update to the same Joomla minimal test site.
The Joomla version indicates 5.3.0-beta4-dev+pr.45254
I do notice that as a result of the update an override has been changed on Cassiopeia Details and Files but I had not created any overrides and I do not suspect that this is a problem (file /templates/cassiopeia/html/com_content/form/edit.php).
Tested on Edge and Chrome, cleared cache etc.

avatar dpollez
dpollez - comment - 3 Apr 2025

PR marked as Draft: OK, thanks for all your great work.
My first issue post, don't know the rules yet. Had put my test a day earlier in my original post #45238, saw no response and then finally came to the right place here.

Add a Comment

Login with GitHub to post a comment