Tell me how you can implement, and whether it is possible to do this at all. There is a catalog and links such as example.com/catalog/section/subsection/item/ Now if you delete this product, then this link will give you the heading 404 (which is great) and draws the main page of the catalog. Is it possible to make it so that it does not draw the main catalog, but the section in which this product was.

For example, example.com/catalog/section/subsection/ for example.com/catalog/section/subsection/item/

and example.com/catalog/section/ for example.com/catalog/section/item/

  • in the component settings, enter the settings for 404 pages. if necessary, modify the formation of links before displaying the component and substitute your data into the required component parameters. - Nikolaj Sarry 2:17 pm
  • Here is the complete setting of 404 pages that specifically wrote this article in order to close this topic once and for all, since this is one of the most common mistakes: 1C-Bitrix - correct setting of page 404 - Alexander Lyzhenkov
  • it all depends on how much you can program, you can do it, the formation of the URL and 404 occurs at the component level, where it "guesses" the URL. If in brief, the component is complex, it connects the section and element templates and the search and filter .... So, if you create a component in your namespace and inherit from the standard one (it is desirable that bytrix be new and it was a class), then 404 logic can be easy to turn into anything - binliz

0