Project

General

Profile

Actions

Bug #15202

closed

links to pages with a different sys_domain record

Added by Robert Destigter over 18 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-11-15
Due date:
% Done:

0%

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

Description

Search results in the indexed_search extension that link to pages with a different sys_domain record in the page tree link to the current domain name.

(issue imported from #M1868)


Related issues 5 (0 open5 closed)

Related to TYPO3 Core - Bug #16182: Domain Substitution in external linkClosed2007-07-30

Actions
Related to TYPO3 Core - Bug #18432: Linking between domains in the pagetree with checkRootline does not work with menusClosedDmitry Dulepov2008-03-12

Actions
Related to TYPO3 Core - Feature #14206: typolinkCheckRootline don't workClosed2004-06-16

Actions
Related to TYPO3 Core - Bug #17941: typolinkCheckRootline not working with multiple websites under one umbrella website.ClosedHelmut Hummel2007-12-19

Actions
Related to TYPO3 Core - Bug #16147: Linking between domains in the pagetree ignores simulate static documentsClosedDmitry Dulepov2006-05-15

Actions
Actions #1

Updated by Christian Trabold over 18 years ago

Put this into the SETUP-Field of your TypoScript-Template:

config.typolinkCheckRootline = 1

Does this help?

Have a look at TSRef for details.

Actions #2

Updated by Robert Destigter over 18 years ago

I tried the config.typolinkCheckRootline = 1 but it made no difference.

I'm wondering if I am using the wrong version of indexed_search. My current version is 2.1.3. But on an older typo3 installation I have more options in the info module.
Also the installed extension in the typo3conf folder is executed and not the one in the sysext folder. Does this make any difference?

Actions #3

Updated by Robert Destigter over 18 years ago

I solved the problem by changing the lines

search {
rootPidList =
page_links = 10
}

to

search {
rootPidList =
page_links = 10
detect_sys_domain_records = 1
}

in typo3conf/ext/indexed_search/ext_typoscript_setup.txt

but now the urls are not translated using Real URL also not in results of the active domain.

And www.mydomain.dk in the results is show as ww.mydomain.dk. The first letter is trimmed.

Actions #4

Updated by Robert Destigter over 18 years ago

The page id's are not translated to nice urls because the linkPage function in class.tx_indexedsearch.php returns the following:

return '<a href="'.$scheme.$firstDom.'/index.php?id='.$id.$addParams.'" target="'.$this->conf['search.']['detect_sys_domain_records.']['target'].'">'.htmlspecialchars($str).'</a>';

I commented this line and added:

$linkClass = new t3lib_tstemplate ;
$pageResult = $GLOBALS['TYPO3_DB']->sql(TYPO3_db, "SELECT * FROM pages WHERE uid=".$id) ;
$pageArray = mysql_fetch_assoc($pageResult) ;
$linkArray = $linkClass->linkData($pageArray, 0, 0, 0) ;
$pageNiceUrl = $linkArray['totalURL'] ;

return '<a href="'.$scheme.$firstDom.'/'.$pageNiceUrl.$addParams.'" target="'.$this->conf["search."]["detect_sys_domain_records."]["target"].'">'.htmlspecialchars($str).'</a>';

Actions #5

Updated by Robert Destigter over 18 years ago

Next thing I've changed is:

return ereg_replace("\/$","",$row["domainName"]);

to

if($_SERVER['HTTP_HOST'] == $row['domainName']) {
unset($row['domainName']) ;
}
return ereg_replace("\/$","",$row["domainName"]);

in the getFirstSysDomainRecordForPage function to ignore the sys_domain record when the results are from the active domain.

Actions #6

Updated by Benni Mack about 16 years ago

tell me, is this problem solved with TYPO3 4.2 ?

Actions #7

Updated by Helmut Hummel almost 16 years ago

Is this solved with TYPO3 4.2?

Actions #8

Updated by Christian Kuhn almost 15 years ago

Resolved, no change required after a year without feedback.

Actions #9

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF