Project

General

Profile

Actions

Bug #38217

closed

typolink to rootpage generates empty link (if used without absRefPrefix)

Added by Stefan Neufeind over 12 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-06-20
Due date:
% Done:

0%

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

Description

Creating a typolink to the rootpage of a site generates an empty link. Usually it would contain the name of that page (contact.html or so) but not for the rootpage. If however absRefPrefix is set that "nothing" gets prefixed with the domain and it works.

Actions #1

Updated by Stefan Neufeind over 12 years ago

How could this be solved elegant without using absRefPrefix?
Linking to / might be an option, but if a basehref of http://example.com/abc/def/ is used that would link to http://example.com/ and "break out" of the basehref that way.

Would it maybe be an option to add absRefPrefix as a property of typolink? This way you could at least set it to 1 (or 0) on a per-link-basis and avoid having to set it for the whole page if you know you just need it for one special link to the root.

But a general solution that automatically works fine no matter what the target-page is would be great.

Actions #2

Updated by Frans Saris almost 10 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

If the baseurl is http://example.com/abc/def/ then the absRefPrefix should be /abs/def/? That would resolve the issue wouldn't it.

if you set config baseURL to http://example.com/abc/def/ the empty root link shouldn't be a problem.

Actions #3

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback 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