I’m trying to disable the Searchable plugin default search page (http://localhost/searchable/), but haven’t found a way to do it. Anyone know how this can be done, preferably in a legit way, but resorting to trickery if necessary?
I’m trying to disable the Searchable plugin default search page ( http://localhost/searchable/ ), but
Share
I usually re-route error code handlers to a controller so I can do some logging or whatever before rendering the view. You can use that here also:
where ErrorsController looks something like this:
and you’ll need to create accessDenied.gsp, notFound.gsp, and notAllowed.gsp in grails-app/errors
By sending a ‘hidden’ controller to its custom mapping you can log unexpected access to it, but still render the 404 page to hide its existence.