Skip to content

BUG: Viewhelper LinkViewhelper in VHS 7.1.0 with TYPO3 12.4.28 #1943

@julebbb

Description

@julebbb

I have checked that the bug exists in the dev-development branch
Yes or no.
Yes

I have checked that there are no already open issues or recently closed issues about this bug
Yes or no.
Yes

Describe the bug
When we use the viewhelper <v:page.link pageUid="{uid}"/> it return a error occurred in frontend.
Error return :
Exception: TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setRequest(): Argument #1 ($request) must be of type TYPO3\CMS\Extbase\Mvc\RequestInterface, TYPO3\CMS\Core\Http\ServerRequest given, called in /var/www/composer/sit_services/packages/vhs/Classes/ViewHelpers/Page/LinkViewHelper.php on line 236, in file /var/www/composer/sit_services/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php:722

To Reproduce
Steps to reproduce the behavior:

  1. Create a link viewhelper in your html : <v:page.link pageUid="{uid}"/>
  2. See error

Expected behavior
Create a link in the frontend like it happens in older version of VHS example version 7.0.7

Screenshots

Image

Image

Additional context
Typo3 use : 12.4.28 and 12.4.27 in composer mode

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