Project

General

Profile

Actions

Bug #87325

closed

Unexpected behavior when there is no text in f:link.page

Added by Giovanni Romero Pérez almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-01-03
Due date:
% Done:

0%

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

Description

Hello. Happy new year!

I'm using the f:link.page view helper. I found that the vh unfolds in a different way than expected when I don't define a text inside it.

For example, I have the following partial:

<div id="my-div">
    <div class="indicator hidden-xs" title="Search">
        <f:link.page pageUid="{searchPageUid}">text</f:link.page>
    </div>
    <div class="my-div-content"></div>
</div>

The result is:

<div id="my-div">
    <div class="indicator hidden-xs" title="Search">
        <a href="/index.php?id=362">text</a>
    </div>
    <div class="my-div-content"></div>
</div>

But, when I don't set any text in the view helper...

<div id="my-div">
    <div class="indicator hidden-xs" title="Search">
        <f:link.page pageUid="{searchPageUid}"></f:link.page>
    </div>
    <div class="my-div-content"></div>
</div>

The result is:

<div id="my-div">
    <div class="indicator hidden-xs" title="Search">
        <a href="/index.php?id=362">
    </a></div><a href="/index.php?id=362">
    <div class="my-div-content"></div>
</a></div>
<a href="/index.php?id=362">

</a>

Thanks.

Actions

Also available in: Atom PDF