I'm testing out beta1 so that i can get my updated auto internailzation patch included.

I noticed while updating my patch that all "internal:" items are being replaced, but are including an additonal "node/" in the url.

Example:

Create link with "internal:node/1"

Output to browser after save is: "/drupal-6.14/node/node/1" instead.

Issue is most likely in _pathfilter_process_internal() but it looks fine to me.

Comments

harking’s picture

Looks like this also occurs with the files: syntax when using "Private" files.

Because of this, i don't think the issue is isolated in _pathfilter_process_internal()

My Current Test Node:

http://google.com
<a href="http://google.com">Google Link</a>

http://drupal.montanaharkin.net/drupal-6.14/node/1
<a href="internal:node/1">Node Add Page</a>

http://drupal.montanaharkin.net/drupal-6.14/sites/default/files/GuestList_4.xls
<a href="files:GuestList_4.xls">Link to Testo.php file</a>

Calling file_create_url('GuestList_4.xls'); works as expected.

mrfelton’s picture

I can't reproduce this. I tried with the exact same node content you have, with both private and public file methods as well as absolute path and URL settings for pathfilter. Do you have any other input filters enabled? Other modules enabled?

harking’s picture

It was a fresh install with pathfilter 2.0 beta1 installed.

Core modules included stock setup + path, upload, and pathfilter modules

I'll test again at work today.

harking’s picture

Just reproduced at work.

Fresh install of Drupal 6.14
Install pathfilter 2.0 beta1
Enable path, upload, pathfilter
Create new node, paste in sample from above.

harking’s picture

Priority: Critical » Normal
Status: Active » Closed (won't fix)

Narrowed it down to the "HTML filter" that is enabled by default in D6. By default it is a higher priority than the Internal Path Filter.

We could try and set the default priority of the Internal Path filter to be higher than HTML.

It looks like the README.txt already states this issue. Can we add a link to the install Readme from the front page of Path Filter module?

mlmoseley’s picture

Version: 6.x-2.0-beta1 » 6.x-1.0

I am experiencing the same thing. I can't reliably build a navigation menu because Drupal is adding text to the URLs. For example, my root is 'localhost', my drupal installation is 'drupal'. So in my template.php I have a function with this html link:

Foobar

When I log into my site, if start from the front page, all the links in the navigation menu work. This link, for example, resolves to:

http://localhost/drupal/node/9

Which would take me to node 9. All fine and good, but let's say I navigate to node 8, And then I click on the Edit tab. I do little edting, and now I'm done. I'm going to go back to node 9. So I float the mouse over the 'Foobar' link, but instead of seeing the URL above, I see:

http://localhost/drupal/node/8/node/9

And of course that link won't work. What's happening is drupal is taking the context, the place I am at that moment, and prepending it to the link coded in template.php. I have no idea why.

If, in template.php, I make the link a fully qualified URL (includes 'http://...") then it works. But I shouldn't have to do that.

Help!?

--Marshall

dan_metille’s picture

Have same issue

Suscribe!

panayotis’s picture

Hi!

I had the same problem. Although I can't say what's the reason I found a solution. Install the pathologic module and activate the filter in input formats.

Cheers
Panos