Project

General

Profile

Actions

Bug #70147

closed

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

Added by Andreas Allacher about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2015-09-28
Due date:
% Done:

100%

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

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.

Actions

Also available in: Atom PDF