WebsiteBaker Support (2.12.x) > Modules
404 module redirects to wrong pages...
Ruud:
I think it is a backend problem..
This line gave me the hint :-)
--- Quote from: astricia on June 18, 2019, 07:59:26 AM ---I also noticed that instead of a tree of PAGES to select from, I get a tree of all SECTIONS to select from. Since every page consists of 4 or 5 sections, this makes it very difficult to find the correct link.
--- End quote ---
I guess the 404 page also has another module that builds a page-list (section-list in this case) for some selection.
To prevent slow loading in large website, the pagelist is stored in a variable and if that variable exists it will be re-used.
The variable name is a little bit generic ($links), so it is possible another module uses that already.
Now, you select a section_id and this section_id is used as page_id to find the correct page.
Since section_id's are alway much higher than page_id's the result will be unpredictable.
I must admit, it is bad programming :-)
I will do a quickfix in a next version.
astricia:
Tested Ruud's fix - and it works perfectly! Yes, there was a section picker section on the same page - which probably used the $links variable for the sections instead of pages... Now it works perfectly! Thanks, Ruud!
Astrid :-)
Ruud:
The fixed version (1.4.1) is now available on my website:
https://dev4me.com/modules-snippets/opensource/404/
Navigation
[0] Message Index
[*] Previous page
Go to full version