If you have a site with a node/X aliased to "foo" and you make a view "foo/bar". If you then alias "foo/bar2" to "foo/bar", Sub-pathauto will make "foo/bar2" into "node/X/bar" instead of "foo/bar", even if you have e.g. a View on "foo/bar".

I hope the above makes sense, if not, I'll be happy to clarify further.

CommentFileSizeAuthor
#5 1691054-check-menu-get-item.patch630 bytesDave Reid
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Postponed (maintainer needs more info)

i just tried to recreate this condition but I did not get the same result.

1. Created a node with manual alias 'foo'
2. Created a content view with a page path of 'foo/bar'
3. Created a manual URL alias with system path 'foo/bar' and alias 'foo/bar2'
4. Went to 'foo/bar2' and the page output was the view I had created, not the node.

Was your manual URL alias created as a language neutral alias or a language-specific alias? If thelatter, did you ensure you were browsing the site with the same language that you set the alias to?

drstuey’s picture

I'm getting what I think is a related problem, and so I think this is a suitable thread to report this

  • I have a node at foo/bar
  • I have a view at foo/bar/foo (made using the Path in Page settings in the View)
  • When subpathauto was installed foo/bar/foo stopped showing the view, instead it showed the same page as foo/bar (so my users experienced clicking a link on foo/bar and it went to the same page and they clicked the link again and went to the same page).
  • Our web developer found a workaround for this:
    1. Make the path of the view into a path that doesn't contain a valid node alias within it, e.g. foo/bar2/foo
    2. Create a URL alias at admin/config/search/path/add from foo/bar/foo to foo/bar2/foo
    3. Now foo/bar/foo shows the view again

We have D 7.14 and sub-pathauto 7.x-1.2

Dave Reid’s picture

Does the View's path actually live at foo/bar/foo? Or does it live at foo/bar and accept arguments for the third part of the URL?

Dave Reid’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Assigned: Unassigned » Dave Reid
Status: Postponed (maintainer needs more info) » Active

Ok I've confirmed this. Patch incoming.

Dave Reid’s picture

Status: Active » Needs review
FileSize
630 bytes

Please test the following patch.

Dave Reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

Jorrit’s picture

This change introduced an annoyance on admin pages, where sometimes the normal theme is shown. See #1814516-5: Subpathauto causing admin pages to appear in default theme.

mbrakken’s picture