Topic on Extension talk:ImageMap

Jump to navigation Jump to search
Baxi69 (talkcontribs)

Hi,

I am working with GraphViz extension using ImageMap extension.

I want to give some nodes some wiki links with a query string to purge.

Sample:

Https://....index.php?title=PageToCall&action=purge

Typing the link in the browser works fine as expected.

The problem here is, that GraphViz creates an error with the "&".

Https://....index.php?title=PageToCall&action=purge

Using "&" works fine in GraphViz, but MW don't do the purge.  

I now added a line to ImageMap body.php at line 151:

# Find the link

$link = trim( strstr( $line, '[' ) );

$link = str_replace ( '&amp;' , '&' , $link ); //<== This is the new line to add

Any ideas for other solutions?

Or can we add this line to the source?

Ciencia Al Poder (talkcontribs)

Imagemap works fine with links that contain ampersands:

Alt text
About this image

The problem may be the GraphViz extension

Baxi69 (talkcontribs)

Yes ampersands ("&") are no problem in ImageMap. But GraphViz don't work with them, so I have to use "&" instead. ImageMap works with them too, but MW don't.

Reply to "ImageMap and GraphVit extension"