Project

General

Profile

Actions

Bug #25300

closed

Typolink - AddQueryString - Adds any Params added to URL

Added by Daniel Alder over 13 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-03-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If you use following example in your TS (typolink with addquerystring option) to generate a link, any parameter will be added to link. Sure this it what it should do, but...

An example:
toplink = TEXT
toplink {
data = LLL:{$FILE.locallang}:topLink
typolink {
parameter.data = TSFE:id
additionalParams.dataWrap = &{getIndpEnv : QUERY_STRING}
additionalParams.if.isTrue.data = getIndpEnv : QUERY_STRING
title.data = LLL:{$FILE.locallang}:topLink
section = anchor
}

wrap = <p class="gotoTop">|</p>
}

Type in your Browser:
http://www.yoursite.com/?testparam=blabla

The gotoTop-Link will look like this:
http://www.yoursite.com/?testparam=blabla#anchor

That generated link will be stored if cache will be rewritten (and indexed by search engines) which is very ugly.

There should be an option which allows whitelisting. And not just excluding params.

(issue imported from #M17915)

Actions

Also available in: Atom PDF