Project

General

Profile

Actions

Feature #19024

closed

CURRENT_URL marker for pageNotFound_handling in class tslib_fe

Added by Ulrich Fischer almost 16 years ago. Updated over 10 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 #1

Updated by Alexander Opitz about 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • TYPO3 Version set to 4.1

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #2

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF