Project

General

Profile

Actions

Feature #19024

closed

CURRENT_URL marker for pageNotFound_handling in class tslib_fe

Added by Ulrich Fischer over 16 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2008-06-27
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

If improved 404 handling is used (e.g. [FE][pageNotFound_handling] = /http-error-404-page/) , there is no possibility to show the URI, that was not found. REQUEST_URI will be overwritten in typo3/sysext/cms/tslib/class.tslib_fe.php.

An easy solution is a marker replacement , like it is used already in class tslib_fe.
If the following solution is realized, ###CURRENT_URL### will be replaced, if it is used in the bodytext of the error page.

It is only one line code more. There are no problems to be expected :-)

SOLUTION:
Insert one new line in typo3/sysext/cms/tslib/class.tslib_fe.php:

Before:
// Put <base> if necesary
if ($checkBaseTag) { [...] }

NEW - insert - line 1381
$content = str_replace('###CURRENT_URL###', t3lib_div::getIndpEnv('REQUEST_URI'), $content);

After:
echo $content; // Output the content
(issue imported from #M8834)

Actions

Also available in: Atom PDF