Why not 404 when menu not publish?

07.12.2025 15:11
#1
dolphin4ik_1
Joomshopping forum user no avatar
Name: Sergey
22.11.2014
Posts: 19
Quote
Why not 404 when menu not publish?

There was an old menu item, category /catalog/page1. I'm creating a new one, the same category /catalog/category1/page1. It's the same category, but with different URLs. I'm disabling the menu item /catalog/page1 from publishing. Ideally, this URL should 404, but it remains, and the page opens at this URL even if the menu item isn't published.
Why not 404  when menu not publish?
screenshot_314.png

https://aspectweld.ru/katalog/svarochnye-materialy/svarochnaya-provoloka is the correct URL
https://aspectweld.ru/katalog/svarochnaya-provoloka is the incorrect URL, the menu has been completely removed
The category is the same, so logically this URL https://aspectweld.ru/katalog/svarochnye-materialy/svarochnaya-provoloka should be a 404.
Both URLs work for the same category.
I also found another pattern. When the category alias matches the menu item alias, both URLs work. If the category URL doesn't match, the URL generated outside the menu will get a 404 error. How can I fix this? I have about 200 categories. Do I need to go into each one and edit the URL?


Joomla: 5
JoomShopping: 5
PHP: 8.3

Last change: 07.12.2025 19:55
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.