I changed the view (nodepicker_nodes) to output custom text with all the html instead of marking the checkbox "Output this field as a link". So i now have the custom text
[code]Insert link[/code] This custom text does not get parsed by Drupals clean URL function (it seems) and stays intact after rendering the view.

I then noticed that the javascript did a replace on the href attribute that made a broken link.
nodepicker_insert($self.attr("href").replace(parent.Drupal.settings.basePath, ''), $self.attr("title")); in the file /js/nodepicker.js
The parent.Drupal.settings.basePath equaled a backslash. I changed it to
nodepicker_insert($(this).attr("href"), $(this).attr("title")); and now it works fine.

Comments

peter törnstrand’s picture

Status: Active » Fixed

Yes, I discovered the same thing just now. A fix for this is commited to DEV branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.