Patch for adding some extra features
FiNeX - August 7, 2009 - 14:49
| Project: | Search 404 |
| Version: | 6.x-1.7 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Hi! I've found this module very useful.
I've patched it for adding three more important features:
- Use a redirect 301 instead of redirect 302;
- Disable the warning message when an user is redirect to a search result;
- Custom page if no nodes has been found.
I use this features for SEO purposes. The patch is valid for version 6.x-1.7.
What do you think about this features?
| Attachment | Size |
|---|---|
| search404_improvements.patch | 9.24 KB |

#1
Probably the patch could be improved returning a 404 instead of a 301 for the custom page redirect.
#2
I've updated the patch: now it returns a 404 when it redirects to the custom page. Moreover I've fixed a small bug I've introduced.