My site is installed at: http://localhost/drupal/

I created a node, using this filter, that contained: About

I expected the link to rewrite to: http://localhost/drupal/about

I'm viewing the node at: http://localhost/drupal/article-title-done-by-pathauto

The link is: http://localhost/drupal/articles/about

Why would "article" be added to it?

Comments

mstef’s picture

Looks like that got chopped off.. the second link was href="about".

mstef’s picture

Changing it to "/about" or "/about/" just results in http://localhost/about, which is also unwanted.

Garrett Albright’s picture

mstef, I'm guessing the node that you're looking at actually has a path of http://localhost/articles/article-title-done-by-pathauto. And I'm also betting that Pathologic isn't working on that path for some reason or other, so the path is still simply "about" when the server serves it up. This will cause the browser to resolve the full URL as http://localhost/articles/about for that link. You can confirm this by checking out the actual HTML output of your text format.

Confirm that Pathologic has been added to the text format being used for that node, and that it's the last filter in the list, which is what you'll need in most cases.

mstef’s picture

Pathologic has been added to the text format at the end; yes.

You didn't add the sub-directory that Drupal is installed at: /drupal/

Garrett Albright’s picture

Okay, what about the outputted HTML? Does it appear that Pathologic is having any effect at all?

mstef’s picture

The output is a simple A tag without anything the href - which was http://localhost/drupal/articles/about.

Maybe it's just me doing something wrong if no one else is having this problem.

I ended up just using token filter since that works for what I need.

If you can't reproduce this, you can simply close.

Thanks.

Garrett Albright’s picture

Status: Active » Closed (cannot reproduce)

Yeah, it really sounds like Pathologic is not affecting your content at all for whatever reason. At any rate, glad you found a solution.