Project

General

Profile

Actions

Bug #81202

closed

linkToTop in css_styled_content broken in TYPO3 7

Added by Simon Schaufelberger almost 7 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2017-05-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
On Location Sprint

Description

Since config.prefixLocalAnchors was removed from the core with #65934 and outsourced into compatibility6 extension, all linkToTops are not working any more if realurl is used.

Testcase:

config {
  prefixLocalAnchors = all
  baseURL = http://www.example.com
}

page = PAGE
page {
  1 < styles.content.get
}

Add a new content element and check the checkbox "Append with Link to Top of Page" in Access tab.

This is the broken typoscript setup in css_styled_content:

https://git.typo3.org/Packages/TYPO3.CMS.git/blob/9219e4fa9af5e4bd2ea1f208056cb396667cce45:/typo3/sysext/css_styled_content/static/setup.txt#l537

Expected:

<a href="path/to/page.html#">Link to top</a>

Actual Output:

<a href="#">Link to top</a>

with a baseurl set links to the root page.


Files

cssstyledcontentlinktotop.png (203 KB) cssstyledcontentlinktotop.png Joerg Kummer, 2018-08-12 12:46

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #65934: Move prefixLocalAnchors to compatibility6ClosedBenni Mack2015-03-23

Actions
Actions

Also available in: Atom PDF