Index: trunk/extensions/ee/ee.pl |
— | — | @@ -345,8 +345,8 @@ |
346 | 346 | ]); |
347 | 347 | open(PREVIEW,">$tempdir/preview.html"); |
348 | 348 | $preview=$response->content; |
349 | | - # Replace relative URLs with absolute ones |
350 | | - $preview=~s|$path|$server$path|gi; |
| 349 | + # Replace relative URLs with absolute ones |
| 350 | + $preview=~s|<head>|<head>\n <base href="$server$path">|gi; |
351 | 351 | print PREVIEW $preview; |
352 | 352 | close(PREVIEW); |
353 | 353 | if($previewclient) { |