I had a situation where category name had "/" (forward slash). This created the issue in pathauto, since those "/" were remained as "/" or all the catpath-raw got replaced with separator.

Example:
category name: testing/tests (parent of this category - "test")

Wanted the URL to be: http://www.test.com/test/tesing-tests

Pathauto result: http://www.test.com/test/tesing/tests

OR with adding separator

Pathauto result: http://www.test.com/test-tesing-tests

Solved this by changing pathauto.module from

$values[$label .'path-raw'] = $catpath_raw .'/'. $category->name;

TO

$values[$label .'path-raw'] = $catpath_raw .'/'. preg_replace('/\//', $separator, $category->name);

I hope this make sense for someone who got this issue.

Comments

dave reid’s picture

Status: Active » Fixed

This is now the module works in 6.x and above. It's probably time to upgrade. :)

Status: Fixed » Closed (fixed)

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