I have created a panel page at mysite.com/page1. Now, all the urls like mysite.com/page1/sub1 and mysite.com/page1/sub2 redirects to mysite.com/page1, instead of returning 404 not found message. This is creating duplicate content, lots of them.

Comments

merlinofchaos’s picture

This is pretty normal for any page in Drupal. It's not a redirect, it's that the additional arguments are ignored. It's not a bug, and it's not duplicate content.

Drupal already does this: Visit node/1/view/alsdjflkaj

That's the same as node/1.

mclaren’s picture

Thank you for the clarification. But, if I have clean url enabled, and if my url is mysite.com/page-tile, then mysite.com/page-title/view/alsdjflkaj returns 404 not found message. I wonder if this can be done in panel too.

merlinofchaos’s picture

Ahh, you mean pathauto.

And that's because pathauto only turns the specific path into something else. You could accomplish the same thing with Panels and alises. For example, let's say you create your panel page with the path page/1. If you then create an alias 'mypage' then mypage/foo will always 404 because it doesn't match the alias.

mclaren’s picture

Great! Thanks a bunch!

esmerel’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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