Project

General

Profile

Actions

Bug #17013

closed

Links to top don't work with config.baseURL set

Added by Robert Wruck almost 18 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-02-19
Due date:
% Done:

0%

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

Description

When a base URL is defined, the link '#' doesn't refer to the current page anymore.
If you are on page http://www.example.com/index.php?id=42 and config.baseURL is set to http://www.example.com/, then all "to top" links will refer to http://www.example.com/# (which is surely not what you want).
To be compatible with baseURL, those links should include the current URL (http://www.example.com/index.php?id=42#)

(issue imported from #M5026)

Actions #1

Updated by Robert Wruck over 17 years ago

My workaround is the following TypoScript (which requires a "top" anchor, because I didn't find a way to simply add a #):

tt_content.stdWrap.innerWrap2 = |
tt_content.stdWrap.innerWrap2.append = TEXT
tt_content.stdWrap.innerWrap2.append {
value = {LLL:EXT:css_styled_content/pi1/locallang.php:label.toTop}
wrap = <p class="csc-linkToTop">|</p>
typolink = 1
typolink {
parameter.data = page:uid
section = top
}
}

Actions #2

Updated by Franz Koch over 17 years ago

this is not a bug but a missing configuration in your setup:

config {
prefixLocalAnchors = all
}

that's the trick for simulatestatic and realurl. But this is documented if I can remember correctly.

Actions #3

Updated by Robert Wruck over 17 years ago

Uuh. I think I must confess that I didn't search thoroughly for a configuration option, because the combination baseUrl set / prefixLocalAnchors unset can't possibly work (not even if you don't use simulateStaticDocuments / RealURL).
Maybe it should default to 'all' ... but feel free to close this one. Doh!

Actions #4

Updated by Ernesto Baschny over 17 years ago

I think it would make sense to prefixLocalAnchors=all when baseURL is set and prefixLocalAnchors is not set at all. Let's see if we can get that into 4.2.

I stumbled over a similar problem:

- baseURL not set
- prefixLocalAnchors = all
- simulateStatic is ENABLED

Links with <a href="#" ...> are wrongly replaced.

Cheers,
Ernesto

Actions #5

Updated by Ernesto Baschny over 12 years ago

  • Category deleted (Communication)
  • Status changed from Accepted to Rejected
  • Target version deleted (0)
  • PHP Version deleted (4)

Configuration issue. We'll enhance the documentation. See #39012.

Actions

Also available in: Atom PDF