Hey there,

I just stumbled across an issue which is more Drupal related.
Nevertheless, it is annoying, so I fixed it.

The problem is, that if you exclude paths like "node/*" all paths will be excluded that start with "node/". That also included "node/add/[NODETYPE]" pages.
To prevent such cases, I added a new text field to insert paths into that would annihilate of the exclude field.

Example:
Excludeded Urls:
node/*

Included:
node/add/blog

Result:
node/123132 -> No redirect
node/356/edit -> No redirect
node/add/blog -> Redirect

I hope this helps someone someday :)

Patch will follow in the first comment.

Greetings
func0der

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

func0der’s picture

Version: 7.x-1.8 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
3.56 KB

And the promised patch.

func0der’s picture

Title: Include excluded urls » Include excluded urls (patch included)
func0der’s picture

FileSize
3.57 KB

Fixed Copy&Paste mistake -.-
Sorry.

csc4’s picture

Looks like a very useful addition

rooby’s picture

An alternative solution could be to implement something like the context module uses, where a ~ prefix negates, so you could do this in the current noredirect field:

node/*
~node/add/blog

That's a pattern I've seen used in a few modules.

rooby’s picture

Status: Needs review » Needs work

This patch no longer applies. It also needs to be applied with
patch -p7
instead of
patch -p1

rooby’s picture

Status: Needs work » Needs review
FileSize
3.36 KB

Here is a reroll for latest dev. No changes.

Seems to work for my small amount of testing.