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
Comment #1
harking commentedLooks 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:
Calling file_create_url('GuestList_4.xls'); works as expected.
Comment #2
mrfelton commentedI 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?
Comment #3
harking commentedIt 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.
Comment #4
harking commentedJust 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.
Comment #5
harking commentedNarrowed 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?
Comment #6
mlmoseley commentedI 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
Comment #7
dan_metille commentedHave same issue
Suscribe!
Comment #8
panayotis commentedHi!
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