francescogregori/friendly_url_only

Displays page 404 for all nodes that do not have a path set with pathauto. Example: 'node / 1' return 404 page

dev-master 2021-03-11 00:48 UTC

This package is auto-updated.

Last update: 2024-09-13 19:14:16 UTC


README

Friendly url only is a module that allows you to deny access to all nodes that do not have an alias path set.

Installation

Use composer to install friendly_url_only.

composer require francescogregori/friendly_url_only

Usage

Enable the friendly_url_only module and check that you have also activated pathauto. Now all nodes with url 'node / x' will be automatically redirected to page 404. Set alias URL with pathauto.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT