Issue:%PAGE% bug in image link
From FollowTheScore
Description: | :%PAGE% bug in image link |
Extension / Version: | DPL / 1.8.9 |
Type / Status: | Bug / open |
Problem
When using %PAGE% in a link field ina mediawiki image (to link the image to another page) it does not work if the page name has a space in it. e.g. IN the example below, all references to %PAGE% work perfectly if the page name is one word, but if it is a two word page title, the link=http://mysite.com/index.php?title=%PAGE% fails - instead it links to the image file path. But this works fine if the page title is one word
{{#dpl: |category=catname |namespace=Main |randomcount=1 |include=teaser |format = ,\n'''[[%PAGE%|%TITLE%]]'''[[Image:%PAGE%-main.jpg|border|150px|right|link=http://mysite.com/index.php?title=%PAGE%]], [[%PAGE%|...Read more about %PAGE%...]], }}