Bug #91746

LinkService can't handle filelinks with additional arguments

Added by Nigg no-lastname-given over 1 year ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2020-07-06
Due date:
% Done:

0%

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

Description

TCA:

'link' => [
            'label' => 'Link',
            'config' => [
                'type' => 'input',
                'softref' => 'typolink',
                'size' => 50,
                'renderType' => 'inputLink',
                'max' => 1024,
                'eval' => 'trim,required'
            ],

In my Model i will get more inforation with the Linkservice.

    public function getLinktype(): array
    {
        $linkService = GeneralUtility::makeInstance(LinkService::class);
        return $linkService->resolve($this->link);
    }

Fluid:

<f:debug>{linkItem.linktype}</f:debug>

Linkvalue to a file with additional attribut target:

t3://file?uid=39973 _blank

TYPO3 will call an exception. Without additional arguments it will work.
The problem only affects t3://file with additional arguments


Files

error.png (169 KB) error.png Nigg no-lastname-given, 2020-07-06 10:50
#1

Updated by Georg Ringer about 1 year ago

  • Status changed from New to Rejected

This works without a problem with core's template, e.g. fluid_styled_content and a link for a header.

I suggest using <f:link.typolink parameter"{model.link}">link</f:link.typolink> which will generate a prober a-tag

Also available in: Atom PDF