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.
Comment | File | Size | Author |
---|---|---|---|
preg_subdir_install.patch | 1.35 KB | matt westgate | |
Comments
Comment #1
jhriggs CreditAttribution: jhriggs commentedThere 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
Comment #2
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedThis patch is way better than the other one. +1.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to HEAD.
Comment #4
(not verified) CreditAttribution: commented