If Drupal is Installed in a subdirectory, all block paths must contain references to the subdirectorie(s) in the regular expression. For example say you install Drupal in a folder called 'drupal'. The path

<^node/view>

would need to be

<^drupal/node/view>

in order to function correctly.

In my opinion, requiring the user to specify subdirectories is a pain for all the reasons why we don't force an user to specify the $base_url in the path. If the install subdirectory changes or even if it is moved to the root, it shouldn't cause the path display logic to break.

Lastly, this problem also yields the regular expression examples in the block help text useless. We may want to consider rewriting the help text if this patch is not accepted.

CommentFileSizeAuthor
preg_subdir_install.patch1.35 KBmatt westgate
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhriggs’s picture

There is already an issue open for this[1]. You may want to look at the comments and patches there.

[1] http://drupal.org/node/view/6523

killes@www.drop.org’s picture

This patch is way better than the other one. +1.

Dries’s picture

Committed to HEAD.

Anonymous’s picture