I have a Panel Page set up with the path node/%node/foo and all works fine when I visit a link such as node/6/foo. However, when I visit nodealias/foo it doesn't work at all. Is it possible to get panels to work with pathauto in this way?

I am thinking I may have to implement the hook hook_url_inbound_alter and change the url myself.

I also posted this question here: http://stackoverflow.com/questions/6706588/drupal-panel-pages-pathauto

Comments

brycesenz’s picture

Changing the url yourself? That's so not Drupal.. :)

What you need is a module called subpathauto (or something like that.), which handles the subpaths for your node aliases.

Example:

You used pathauto to create an alias for "node/%node" to "mycontent/[title]". But, the path "node/%node/edit" will still be "node/5/edit" (assuming we're talking about the node with nid 5). In other words, the ../edit path of nodes isn't aliased with just pathauto.

Subpathauto addresses this - if you enable it, "node/%node/edit" will be aliased to "mycontent/[title]/edit".

Now for Panels - Any panels with the format "node/$node/foo" should now alias to "mycontent/[title]/foo". At least, it worked for my site.

Letharion’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.