Closed (duplicate)
Project:
Drupal core
Version:
4.7.2
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2006 at 13:33 UTC
Updated:
8 Aug 2006 at 13:35 UTC
I noticed that depending on how you set up pathauto, it has the potential to break settings for what blocks are displayed on what nodes. For example, on the site that I'm setting up, we wanted URLs to the individual blogs to be something like example.com/username, however, with urls like that I can't exclude certain blocks from being displayed on the blogs without using php.
Comments
Comment #1
gregglesWhat is the bug in the software? How should the software behave differently?
So far all that you're saying is that if you shoot yourself in the foot then a gun lets you shoot yourself in the foot... :)
Comment #2
nikkiana commentedWell, I suppose my thoughts led me to believe that whether a block displayed or not was dependant on what the system url was, not what the pathauto url was...
Maybe some way to either choose whether to display is based on what the system URL is or what the pathauto URL is?
Comment #3
gregglesThat would be a bug against core, but really I think that you can achieve what you desire using pathauto and just fixing your block visibility settings.
E.g. instead of example.com/username do example.com/users/[user] and then set the block visibility to show up on /users/*
Here is a typical way of describing the bug you are reporting:
Steps to repeat:
1. create a block and in the block visibility settings have it show on node/1
2. using the path module (not even pathauto) change 'node/1' to 'somethingelse'
3. visit 'somethingelse' in your browser
Expected results:
Block shows on 'somethingelse' since something else maps to node/1
Actual results:
Block is not shown
And that would be a bug against the block module or against path in core. If you feel that should be addressed, please reassign this to the Drupal core block module
Comment #4
gregglesReassigning and changing title
Comment #5
sja1 commented+1 from me on this one. I just discovered this same problem today, albeit in 4.6. The above workaround (setting alluser pages to /user/username instead of /username) is just that... a workaround. Whether its a bug or a feature request, I'll let someone else decide. Regardless, I think it should be changed so that you do not lose flexibility on block display when using path or pathauto.
Comment #6
gregglesThe issue http://drupal.org/node/68187 is for the same issue and has a patch attached so I'm marking 69346 a duplicate of that issue.