Hi, i've got very strange problem with path replacement.

Let's say i have vocabulary: Pets
This vocab contains terms such as: Cats, Dogs, Birds etc.
If you go to Cats term path will be: site.com/pets/cats and that's ok.
Now, i also have 3 views pages which represents how big this type of pets is.
This views have this paths:
taxonomy/term/%/small
taxonomy/term/%/medium
taxonomy/term/%/large

They also have Tabs menu for navigation.

And here's a problem:
When i go to one of this views pages from main term page.
For example i go from 'site.com/pets/cats' (it's real url is: 'taxonomy/term/5') to small pets, page gets right alias: 'site.com/pets/cats/large'.
But!!!
If i'm currently on one of this views pages and trying to go to another one, alias for this page not used.
It means if i'm currently on 'site.com/pets/cats/large' and click on 'small' tab i'll be redirected to 'taxonomy/term/5/small' (and of course it should be: site.com/pets/cats/small).

Gee, i hope you understood what i wrote.
Thanks.

Comments

smk-ka’s picture

Status: Active » Postponed (maintainer needs more info)

Trying hard to reproduce, but with no luck :( This is what I did:

Created vocabulary "Pet", added terms "cat" and "dog" (note: pathauto is configured to create aliases of the form "category/[vocab-raw]/[catpath-raw]").
Created vocabulary "Size", added "small", "medium", and "big".
Added node "Cat #1", which is a medium sized cat.
Added node "Cat #2", which is a big cat.
Enabled the default node view "taxonomy_term" with the following changes:
- replaced both taxonomy arguments with "Taxonomy: Term ID" (so only one argument is left)
Cloned this view to "taxonomy_term_medium" with the following changes:
- set the path to "taxonomy/term/%/medium"
- added a menu tab labeled "Medium"
- added a filter: "Term name = medium"
Cloned the last view again to "taxonomy_term_big" with the following changes:
- set the path to "taxonomy/term/%/big"
- changed menu tab label to "Big"
- changed filter to: "Term name = big"

I can successfully browse to http://site.com/category/pet/cat and the two sub-views for which I had configured menu tabs. Did you setup your views differently (particularly the sub-views and taxonomy arguments)?

Kane’s picture

Well if to take your example, i can also navigate to http://site.com/category/pet/cat/big or http://site.com/category/pet/cat/small
and it does have an aliases BUT this pages receive aliases only when you navigate from the main views.

Try this: Go to one of subviews; http://site.com/category/pet/cat/big for example. Now when your on this page hover mouse over other subview (small). If you have same problem as me path to other subview would be without alias.

Anyway, I'm gonna try clean install to check if it's my settings problem or not.

Thanks.

Kane’s picture

Oh crap, i've missed very large point here:
You see, i don't have vocabulary: Size.

Size of the is cat determined by cck field which could be filled when creating node.
It means that in those subviews i've got extra filter which checks if certain cck field is not Null.

I'm sure that if i create Vocabulary "Size" then aliasses will be created automatically, but i'm kind of already have working system and adding new Vocab will look a bit strange.

I hope now you see my problem.

Kane’s picture

Ok, tried to create clean install. Everything works.

Now i need to figure out where i fucked up.

Thanks smk-ka.

dave reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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