Project

General

Profile

Actions

Bug #71695

closed

toTop Link reloads page

Added by Robert Vock over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid Styled Content
Target version:
-
Start date:
2015-11-19
Due date:
% Done:

100%

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

Description

When using the fluid_styled_content and a content element has a linkToTop, the generated link looks like this:

<a href="#">To top</a>

This link will reload the page, if a baseUrl is set. A better Template would be:

<f:link.typolink parameter="{data.pid}#top"><f:translate key="toTop" extensionName="fluid_styled_content" /></f:link.typolink>

This is still not completly correct. It is not possible to set an empty anchor in f:link.typolink. That's why I used #top. But if there is an element on the page with id (or name) "top", then this link will jump to that element instead of the top of the page.

Secondly, other page arguments will not be added to the url. This could be achieved, if the TypolinkViewHelper would add all QueryString parameters (as in TypoScript: typolink.addQueryString = 1)

This bug exists also in css_styled_content.

It's also possible to just document this incompatibility between baseUrl and linkToTop:
https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#baseurl


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #45175: f:link.page addQueryString="1" doesnt work properlyClosed2013-02-01

Actions
Actions #1

Updated by Claus Due over 8 years ago

  • Category changed from Fluid to Fluid Styled Content

Moved to fluid styled content. You may want to create a separate issue with a feature request for an argument controlling the adding of current query string to f:link.typoLink (because it will not be done as part of this bug fix, I'm sure).

Actions #2

Updated by Riccardo De Contardi over 8 years ago

For workarounds see comments here #45175

Actions #3

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45053

Actions #4

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45053

Actions #5

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45053

Actions #6

Updated by Gerrit Code Review over 8 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45053

Actions #7

Updated by Gianluigi Martino over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF