I noticed that if there is category name with forward slash (i.e. "Dec/Nov"), "/" stays in URL.
This can be a problem for breadcrumb.
If category path was set to:
"[vocab-raw]/[catpath-raw]"

I got the URL: http://mysite.com/vocabrary/dec/nov instead of http://mysite.com/vocabrary/dec-nov

I fixed this by:

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

TO:

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

I hope this helpe someone having the similar issue.

* I also changed
$catpath_raw = pathauto_cleanstring(preg_replace('/\//', '', $parent->name)) .'/'. $catpath_raw;
TO
$catpath_raw = pathauto_cleanstring(preg_replace('/\//', $separator, $parent->name)) .'/'. $catpath_raw;

Since it's I wanted forward slash to be replaced with the separator.

Comments

dave reid’s picture

Status: Active » Closed (duplicate)

Duplicate of #692348: Forum alias containing slashes "/" which was fixed.