Project

General

Profile

Actions

Bug #16185

closed

TBE Browser (element browser) current link's url value from RTE

Added by cyprianpl over 18 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-05-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

IMO the script from class.browse_links.php handles the current link's url value in the wrong way (it's around line 792).
When one use TBE Browser (I'm not sure of its name) from within RTE (I'm trying to make TinyRTE to work) the 'mode' should always be 'wizard', shouldn't it?
Yet, when it's this way, the current link's url is taken from 'P' param, but for external URLs it should be taken from 'curUrl', right?
Additionally there is no 'title' param handling...

my fix:
if ($this->act == 'page') {
$currentLinkParts = t3lib_div::trimExplode(' ',$this->P['currentValue']);
$this->curUrlArray = array(
'target' => $currentLinkParts1
);
$this->curUrlInfo=$this->parseCurUrl($this->siteURL.'?id='.$currentLinkParts0,$this->siteURL);
} else {
$this->curUrlArray = t3lib_div::_GP('curUrl');
if ($this->curUrlArray['all']) {
$this->curUrlArray=t3lib_div::get_tag_attributes($this->curUrlArray['all']);
}
$this->curUrlInfo=$this->parseCurUrl($this->curUrlArray['href'],$this->siteURL);
}

It's without without 'title' param.
(issue imported from #M3568)

Actions

Also available in: Atom PDF