[BUGFIX] Pagepath is displayed incorrectly with slash (/) in page title
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Template / DocumentTemplate.php
index 4fd9e8c..0468908 100644 (file)
@@ -2006,9 +2006,9 @@ function jumpToUrl(URL) {
                if (is_array($pageRecord) && $pageRecord['uid']) {
                        $title = substr($pageRecord['_thePathFull'], 0, -1);
                        // Remove current page title
-                       $pos = strrpos($title, '/');
+                       $pos = strrpos($title, $pageRecord['title']);
                        if ($pos !== FALSE) {
-                               $title = substr($title, 0, $pos) . '/';
+                               $title = substr($title, 0, $pos);
                        }
                } else {
                        $title = '';