When a user tries to access the page, he/she now sees as "Not Found" message. Better would be to offer a proper 404 page or even to be able to route the user to a specific page, like a login or any other URL.

CommentFileSizeAuthor
#3 url_alias_restriciton.patch1009 bytesLaust

Comments

Stephan Vanhaverbeke created an issue. See original summary.

stefan lehmann’s picture

Hey Stephan, thank you for your suggestions.

I'll probably do this one here soon.

The other two issues are also good ideas, but require quite a bit of work. From a short look - and seeing that the module only has 19 installs at the moment - I feel not too motivated to spend A LOT of time on it (YET!) :-)

Laust’s picture

StatusFileSize
new1009 bytes

Simply use drupal_not_found() or drupal_access_denied() - patch included for drupal_not_found() version.

[edit] FYI: misspelled url_alias_restriction in the name of the patch [/edit]