diff --git a/inc/template.php b/inc/template.php
index 57023a8273031969a5700e9ba6a184986911672e..5544dc02e5b6f4e9323856a6276263da167520c5 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -880,9 +880,9 @@ function tpl_pageinfo(){
   $fn = $INFO['filepath'];
   if(!$conf['fullpath']){
     if($REV){
-      $fn = str_replace(fullpath($conf['olddir']).DIRECTORY_SEPARATOR,'',$fn);
+      $fn = str_replace(fullpath($conf['olddir']).'/','',$fn);
     }else{
-      $fn = str_replace(fullpath($conf['datadir']).DIRECTORY_SEPARATOR,'',$fn);
+      $fn = str_replace(fullpath($conf['datadir']).'/','',$fn);
     }
   }
   $fn = utf8_decodeFN($fn);