Project

General

Profile

Actions

Bug #64319

closed

FLUID: "f:link.page" and RealURL

Added by Vasyl Mosiychuk almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2015-01-16
Due date:
% Done:

0%

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

Description

I have problem with a view helper for creating links to TYPO3 pages.

This code: <f:link.page pageUid="1">Page link</f:link.page>
Output: <a href="http://www.domain.ltd/index.php?id=1&quot;&gt;Page link</a>

... then I'm install ext: RealURL version 1.12.8

This code: <f:link.page pageUid="1">Page link</f:link.page>
Output: Page link

This code:
<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="1">Page link</f:link.page>
</f:for>
Output: <a href="http://www.domain.ltd/page-link&quot;&gt;Page link</a>

This code <f:link.page pageUid="1">Page link</f:link.page> inside "*f:for*" well works. Outside "*f:for*" does not work.

Why? This is bug?

Install: =
TYPO3 6.2.9 stable
EXT: fluid 6.2.0 stable
EXT: view 2.0.0 stable
EXT: vhs 2.2.0 stable
EXT: flux 7.1.2 stable
EXT: fluidpages 3.1.2 stable
EXT: fluidcontent 4.1.1 stable
EXT: fluidcontent_core 1.0.2 beta
EXT: realurl 1.12.8 stable =


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #51960: Fluid ViewHelper f:link.page fails with link to start pageClosed2013-09-12

Actions
Actions #1

Updated by Riccardo De Contardi almost 10 years ago

That's strange to me, because I use too the Flux/Vhs/Fluidpages/Fluidcontent ecosystem (with the exception of fluidcontent_core) and I don't remember I've had problems :S

My first thoughts:

1. what does

<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="1">Page link</f:link.page>
</f:for>

mean? That you repeat a link to the page with id=1 for every item in {menu}? It doesn't seem correct IMHO

2. Did you set config.baseURL? Are there other configurations like config.typolinkCheckRootline or config.typolinkEnableLinksAcrossDomains ?

Actions #2

Updated by Vasyl Mosiychuk almost 10 years ago

This is a test code for to show where he works and where not work.

This code: <f:link.page pageUid="1">Page link</f:link.page>
Output: <a href="http://www.domain.ltd/index.php?id=1">Page link</a>

... then I'm install ext: RealURL version 1.12.8

This code: <f:link.page pageUid="1">Page link</f:link.page>
Output: Page link

This code:
<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="1">Page link</f:link.page>
</f:for>
Output: <a href="http://www.domain.ltd/page-link">Page link</a>
Actions #3

Updated by Riccardo De Contardi almost 10 years ago

The code you wrote is the same you gave in the ticket description; my question was why did you wrote:

<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="1">Page link</f:link.page>
</f:for>

which seems totally wrong to me: indeed, the output

<a href="http://www.domain.ltd/page-link">Page link</a>

Does not seems to have sense, unless your page with id=1 has "page link" as title.

I think that your code should be something like:

<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="{menuPage.uid}">Page link</f:link.page>
</f:for>

Said that, my first suggestion is to check the realurl configuration file. could you add it to this ticket?

Actions #4

Updated by Riccardo De Contardi over 9 years ago

  • Status changed from New to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF