4 replies [Last post]
adrianmak's picture
Offline
Joined: 05/28/2008
Juice: 312
Was this information Helpful?

As you can see the attached images, catalog/2 = taxonomy/term/2
but why pathauto will created an alias catalog/dress-skirts-0 for taxonomy/term/2 ? However when I access this url

http://mydomain.com/catalog/dress-skirts-0 , it return me a product product node that is same as the alias catalog/dress-skirts/002 and why -0 is suffixed ?

Pattern for all Product paths:
catalog/[termpath-raw]/[model]

Default path pattern (applies to all vocabularies with blank patterns below):
[vocab-raw]/[catpath-raw]

Pattern for catalog pages:
catalog/[catpath-raw]

here are the pathauto settings of mine.

PreviewAttachmentSize
Snap1.jpgSnap1.jpg53.32 KB
thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: strange generated path alias from pathauto

You have run into the issue that cause most people to leave the catalog module.

the catalog pages and the taxonomy pages are not the same thing. It appears you have path auto setup to make taxonomy and catalog pages have the same url. This of course won't work so the path that comes second gets a-0 added to it.

If I were you I would change the path auto settings:
taxonomy: [termpath-raw]
catalog: [vocabpath-raw]/[termpath-raw]

After you change the setting you will have to delete all aliases and then bulk generate all new ones.

In my opinion the default setting for one of them need to be changed. Path auto sets the default taxonomy, and then Ubercart comes along and sets the default for the catalog to exactly match the taxonomy which causes issues.

adrianmak's picture
Offline
Joined: 05/28/2008
Juice: 312
Re: Re: strange generated path alias from pathauto

why I cannot assign these
taxonomy: [termpath-raw]
catalog: [vocabpath-raw]/[termpath-raw]

drupal report an error message
# You are using the token [termpath-raw] which is not valid within the scope of tokens where you are using it.
# You are using the token [vocabpath-raw] which is not valid within the scope of tokens where you are using it.
# You are using the token [termpath-raw] which is not valid within the scope of tokens where you are using it.

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: Re: Re: strange generated path alias from pathauto

I am sorry, i was typing from memory, seems i messed up

catagory/taxonomy: [catpath-raw]

catalog: [vocab-raw]/[catpath-raw]

RCWebmistress's picture
Offline
Joined: 09/19/2011
Juice: 49
Re: Re: Re: Re: strange generated path alias from pathauto

Im having this problem as of today as well. The "-0" continues even with the following settings:

Node Paths:
Pattern for all Product paths: products/[termpath-raw]/[title-raw]
Pattern for all Product kit paths: products/[termpath-raw]/[title-raw]

Taxonomy term paths
Pattern for all Catalog paths: products/[catpath-raw]

Catalog path settings:
Pattern for catalog pages: products/[vocab-raw]/[catpath-raw]

Im using Drupal 6 and Ubercart 2.x