At this moment you can not insert the <front> tag in the redirect settings. Since this is a common Drupal pattern, it should be allowed to use it with rabbit hole as well.

Providing a patch that does allow this, while still maintaining URL validation.

Comments

stefan.korn created an issue. See original summary.

stefan.korn’s picture

stefan.korn’s picture

Status: Active » Needs review
Related issues: +#2926929: Fatal Error on empty Redirect Path

Additonally this might also help with this problem: https://www.drupal.org/project/rabbit_hole/issues/2926929

Since the validation now takes care that no empty path can be entered.

stefan.korn’s picture

Assigned: stefan.korn » Unassigned
stefan.korn’s picture

Patch does not apply to latest version anymore.

Adding a new patch. Here just simply allowing redirect to <front> explicitely.

stefan.korn’s picture

Status: Needs review » Closed (works as designed)

There is another issue with this patch, when doing the redirect. Closing this issue as it seems to work if you enter /<front> for redirect. Although I am not perfectly sure if this works all the time correct, but in my case this is now working with /<front>-