Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using a freelink such as [[Link]] will point the URL to http://en.wikipedia.org/wiki/Link, instead of your own site.
Comments
Comment #1
klcthebookworm CreditAttribution: klcthebookworm commentedI have this issue too. I can't figure out if it is from Wikitools or Flexifilter. I have ran across forum posts saying that is due to Flexifilter, but I haven't figured out how to fix it yet.
Comment #2
apodran CreditAttribution: apodran commentedIt is definitely not a Wikitools issue. It is related to the Flexifilter module.
The simplest way is to export this filter, change its text in a text editor (replace
"<a href="http://en.wikipedia.org/wiki/"
with"<a href="/wiki/"
), and import changed text as a new flexifilter using Administer->Site building->Flexifilters->Import a flexifilter.Comment #3
Fanaile CreditAttribution: Fanaile commentedI was having this same issue; but for me, the fix offered by apodran in #2 did not work. Every time I tried to import the flexifilter after making the suggested changes, I received an error message: "It appears that the serialized flexifilter you entered was improperly formed. Please check the source." (Which is another issue covered elsewhere).
So, what I did was to edit the Mediawiki Format, making sure to change the description to include that it was a modified version of the example.
Then, starting the the "components" fieldset, I opened alternating fieldsets "Chunk Grabber" and "components" until I saw two fieldset labels "If". In each of these fieldsets was another component fieldset, and in the prepend component of each was the en.wikipedia url. I simply replaced it with
<a href="/wiki/
in both cases and saved my changes at the bottom of the page.Also, I have CKEditor running, so for this to work I had to make sure I excluded those fields by adding
admin/build/flexifilters/*/edit.edit-components-flexifilter*
to the exclusion list - otherwise it gave me an error that the text replacement field was required.I'm presuming that the default format was designed to work this way? As it is provided to be an example.