Easiest to illustrate with an example:

before stopwords removed: about/the-weather

after stopwords removed: about/-weather

desired result: about/weather

The attached patch ensures the seperator is removed when it appears directly before or after a slash.

CommentFileSizeAuthor
pathauto-stopword-slash.patch441 bytesterrencewood

Comments

greggles’s picture

Status: Active » Closed (duplicate)

Thanks for taking the time to submit an issue. I believe this is a duplicate of #326503: Remove leading and trailing separators from strings and from around slashes where a simliar solution was proposed. Could you work inside that issue to fix this?

Please consider if this is a duplicate. If not, you can mark this issue as active again.

johnpitcairn’s picture

I'd consider this issue a superset of the other one, since that (and its patch) seems solely concerned with leading separators, whereas this patch addresses leading and trailing separators (and the subject here reflects that).

This patch applied to 6.x-1.1 successfully for me, fixing path aliases that look like "example.com/about-/blahblah (due to addition of "us" as a filtered word, ie with a category "about us").

Can a fix perhaps be looked at for the next supported release? Policy prohibits the use of dev releases, and patching is also frowned upon.

johnpitcairn’s picture

Status: Closed (duplicate) » Active
damienmckenna’s picture

Status: Active » Closed (duplicate)