Issue Bug Closed

#70147typolink section - addQueryString = FALSE only returns sectionMark even if there is a query string on current page

Andreas Allacher 09/28/15, 11:02 updated 10/21/17, 17:42

Description

Currently if one is on the current page with a query string like.

Example: Current Page URL:
http://www.example.org/index.php?id=1&tx_extbase_demo[foo]=123
Page-UID = 1

Now let’s say I want current page without parameters but a section like:
http://www.example.org/index.php?id=1#foo

So addQueryString is not set and
parameter is 1 and
sectionMark #foo

This will reult in “#foo” being returned which means the endresult actually is:
http://www.example.org/index.php?id=1&tx_extbase_demo[foo]=123#foo

if ($sectionMark && !$tsfe->config['config']['baseURL'] && $page['uid'] == $tsfe->id && !trim($addQueryParams) && !($conf['addQueryString'] && $conf['addQueryString.'])) {

I think the !trim($addQueryParams) should catch this BUT because of

$addQueryParams = $conf['addQueryString'] ? $this->getQueryArguments($conf['addQueryString.']) : '';

Those parameters will not be filled in this case.

Reviews 1