Index: /tags/eccube-2.1.2/data/class/pages/LC_Page.php
===================================================================
--- /tags/eccube-2.1.2/data/class/pages/LC_Page.php	(revision 17118)
+++ /tags/eccube-2.1.2/data/class/pages/LC_Page.php	(revision 17252)
@@ -213,25 +213,6 @@
      * @see Net_URL
      */
-    function getLocation($path, $param = array(), $useSSL = "escape") {
-
-        // $path が / で始まっている場合
-        if (substr($path, 0, 1) == "/") {
-            $realPath = realpath(HTML_PATH . substr_replace($path, "", 0, strlen(URL_DIR)));
-        // 相対パスの場合
-        } else {
-            $realPath = realpath($path);
-        }
-
-        // FIXME OS依存の処理は別クラスに分ける？
-        // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する
-        if (substr(PHP_OS, 0, 3) == 'WIN') {
-            $realPath = str_replace("\\", "/", $realPath);
-            $htmlPath = str_replace("\\", "/", HTML_PATH);
-            $rootPath = str_replace($htmlPath, "", $realPath);
-        } else {
-            // HTML_PATH を削除した文字列を取得.
-            $rootPath = str_replace(HTML_PATH, "", $realPath);
-        }
-
+function getLocation($path, $param = array(), $useSSL = "escape") {
+        $rootPath = $this->getRootPath($path);
 
         // スキーマを定義
@@ -259,4 +240,29 @@
     }
 
+    function getRootPath($path) {
+        // $path が / で始まっている場合
+        if (substr($path, 0, 1) == "/") {
+            $realPath = realpath(HTML_PATH . substr_replace($path, "", 0, strlen(URL_DIR)));
+        // 相対パスの場合
+        } else {
+            $realPath = realpath($path);
+        }
+
+        // HTML_PATH を削除した文字列を取得.
+        // FIXME OS依存の処理は別クラスに分ける？
+        // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する
+        if (substr(PHP_OS, 0, 3) == 'WIN') {
+            $realPath = str_replace("\\", "/", $realPath);
+            $htmlPath = str_replace("\\", "/", HTML_PATH);
+            $rootPath = str_replace($htmlPath, "", $realPath);
+        } else {
+            $htmlPath = rtrim(HTML_PATH, "/");
+            $rootPath = str_replace($htmlPath, "", $realPath);
+            $rootPath = substr_replace($rootPath, "", 0, strlen(URL_DIR));
+        }
+        
+        return $rootPath;
+    }
+
     /**
      * ページをリロードする.
