[solved - fix for future?] Problem with search links from custom 404
Posted: Thu Feb 21, 2008 12:59 pm
I am running CMSMS 1.2.1 with pretty urls, and have enabled the Custom 404 Message in Global settings. My custom 404 page includes the search module, in order to help guide users to whatever they were trying to find when they got the 404.
The problem I am encountering is that links to news items generated by the 404 page search do not work correctly
Example:
- go to http://www.edinburghrc.co.uk/rubbish
- do a search for "sponsorship deal"
- click on the first link in the search results http://www.edinburghrc.co.uk/news/341/-1
- 404 page is returned, instead of the expected news item
The cause of the problem appears to be the return_id in the news link URL, which has a value of -1. If you remove the return_id the link works correctly: http://www.edinburghrc.co.uk/news/341
So the search module does not seem to set up a valid return_id when used on the custom 404 page.
That's my diagnosis, but can anyone suggest a solution?
Thanks
Ken
The problem I am encountering is that links to news items generated by the 404 page search do not work correctly
Example:
- go to http://www.edinburghrc.co.uk/rubbish
- do a search for "sponsorship deal"
- click on the first link in the search results http://www.edinburghrc.co.uk/news/341/-1
- 404 page is returned, instead of the expected news item
The cause of the problem appears to be the return_id in the news link URL, which has a value of -1. If you remove the return_id the link works correctly: http://www.edinburghrc.co.uk/news/341
So the search module does not seem to set up a valid return_id when used on the custom 404 page.
That's my diagnosis, but can anyone suggest a solution?
Thanks
Ken