Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Rabbit Hole

Security covered Under active development 67,843 sites

This module allows you to control what happens when an entity is viewed directly on its own page. You can choose to deny access, show a "page not found" error, redirect to another URL, or allow the default behavior, and configure these settings per content type or individual item. This is useful for entities that are meant to be displayed in other contexts, rather than through their own dedicated URL.

What is this?

Rabbit Hole is a module that adds the ability to control what should happen when an entity is being viewed at its own page.

Perhaps you have a content type that never should be displayed on its own page, like an image content type that's displayed in a carousel. Rabbit Hole can prevent this node from being accessible on its own page, through node/xxx.

Options

This works by providing multiple options to control what should happen when the entity is being viewed at its own page. You have the ability to

  • Deliver an access denied page.
  • Deliver a page not found page.
  • Issue a page redirect to any path or external url.
  • Or simply display the entity (regular behavior).

This is configurable per bundle and per entity. There is also a permission that lets certain roles override Rabbit Hole completely.

Supported entities

Version Supported entities 8.x-1.x (stable, security fixes only) Nodes, Taxonomy terms, Users, Media entities, Commerce products, Groups, Files, Paragraph Library items
2.0.x (alpha, future version) All content entities 🥳

Additions

There is support for tokens when you are using the redirect option. However, it's recommended to install the Token module, which will provide you with a table of the available tokens.

Initial module development was sponsored by Odd Hill.

Rabbit Hole 2.0.0 development was sponsored by Evolving Web and DevBranch.

Additional modules

  • Rabbit hole href link alter, that rewrites the canonical link href directly to the redirect target instead of the entity to avoid the redirect.
Drupal 9–11

Ask your assistant about Rabbit Hole

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

5 tracked projects depend on this one

Activity

Tracked releases
10
Tracked since
Jun 2023
Latest release
6 months ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-beta2 Pre-release 9–11 Mar 16, 2026
8.x-1.2 Stable 9–11 Mar 16, 2026
8.x-1.1 Stable 9–11 Jan 13, 2026
2.0.0-beta1 Pre-release 9–11 Jan 14, 2025
8.x-1.0 Stable 9–11 Jul 19, 2024
2.0.0-alpha5 Pre-release 8–10 Aug 5, 2023
2.0.0-alpha4 Pre-release 8–10 Jul 18, 2023
2.0.0-alpha3 Pre-release 8–10 Jul 8, 2023
2.0.0-alpha2 Pre-release 8–10 Jun 28, 2023
2.0.0-alpha1 Pre-release 8–10 Jun 26, 2023