Skip to content

additionalParams not properly read #39

@CDRO

Description

@CDRO

Hello there,

I've stumbled accross a use case that isn't handled (at all) by linkhandler.

So what's happened to us is that a customer of ours wanted to link to a record and add a campaign parameter for the given link.

In order to do so, we added the following to the PageTS:

buttons.link.queryParametersSelector.enabled = 1

Now, this gives an additional field when browsing for links (for every possible link) that allows us to add any given additional parameter the customer wants.

BUT that case is not supported by the TypolinkHandler provided in 3.1.3, so we added it ourselves:

linkhandler/Classes/TypolinkHandler.php:132..134

        $additionalParams = explode('&', $linkParameterParts[2]);
        array_shift($additionalParams);
        $this->linkParameters['additionalParams'] .= '&' . implode('&', $additionalParams); 

Would it be possible for you to integrate this to the upcoming version?

Thanks for your feedback.

Tizian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions