[TYPO3] Showstopper for IE: RealURL and Named Anchorswithinthesame page

Martin Kindler kindlerm at arcor.de
Wed Nov 22 13:38:37 CET 2006


Jörg,

you are right. That is just built-in and works.

Martin

> -----Ursprüngliche Nachricht-----
> Von: typo3-english-bounces at lists.netfielders.de 
> [mailto:typo3-english-bounces at lists.netfielders.de] Im 
> Auftrag von Joerg Wagner
> Gesendet: Dienstag, 21. November 2006 20:14
> An: typo3-english at lists.netfielders.de
> Betreff: Re: [TYPO3] Showstopper for IE: RealURL and Named 
> Anchorswithinthesame page
> 
> 
> Hello Martin,
> 
> thanks a lot for your help, but I think the correct way to go 
> is like Ben 
> suggested.
> See my other posting in this thread with all the steps that 
> are needed.
> 
> --
> Jörg Wagner
> 
> 
> "Martin Kindler" <kindlerm at arcor.de> schrieb im Newsbeitrag 
> news:mailman.41708.1164125314.30218.typo3-english at lists.netfie
> lders.de...
> I would set the URL used in <base> to be the full base-URL 
> i.e. including the page (index.php?id=<id> or the realURL 
> path). Otherwise you rely on the web server configuration to 
> complete this what will be OK for accessing external URLs but 
> possibly IE cannot achieve.
> 
> Martin
> 
> > -----Ursprüngliche Nachricht-----
> > Von: typo3-english-bounces at lists.netfielders.de
> > [mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von 
> > Joerg Wagner
> > Gesendet: Dienstag, 21. November 2006 16:59
> > An: typo3-english at lists.netfielders.de
> > Betreff: [TYPO3] Showstopper for IE: RealURL and Named 
> Anchors within 
> > thesame page
> >
> >
> > Hello world,
> > I am really stuck and hope for your help.
> >
> > I have seen quite some people requesting help on this problem, but 
> > they often failed in describing the exact circumstances of the
> > problem, and so
> > failed to get a solution. So I describe the problem in
> > detail. Hopefully you
> > are able to read all this stuff.
> >
> > Here we go:
> >
> >
> >
> > Situation:
> > *   Typo3 4.0.2 installed
> > *   RealURL installed
> > *   config.baseURL set to http://www.mydomain.com/
> > *   This generates a base tag in the header of the page:
> >    <base href=http://www.mydomain.com />Needed:
> > *   A link at the bottom of each page that jumps back to the
> > top of the
> > page.
> > *   To do this, there is a named anchor  <a
> > name="pagetop"></a>  at the top
> > of each page
> > *   and a link at the bottom of the page of the form:  <a
> > href="#pagetop">To
> > Top!</a>
> >
> >
> > Problem:
> > * The link works in FireFox, but Internet Explorer fails to jump to 
> > the top of the page.
> >
> >
> > Reason:
> > Some tests show that IE uses the url given in <base href=""> to 
> > resolve any links that contain ONLY a named anchor in href, e.g. <a
> > href="#pagetop"> . In combination with RealURL and the
> > config.baseURL setting this leads IE to
> > jump to:
> > http://www.mydomain.com#pagetop
> > where it should jump to
> > http://www.mydomain.com/REALURL/ALIAS/PATH/#pagetop
> > This _could_ be circumvented by prepending the links href
> > with the fully
> > qualified URL of the current page, or at least with the
> > RealURL alias path
> > of the address in the form of  <a
> > href="/REALURL/ALIAS/PATH/#pagetop">To
> > Top!</a>
> > But whatever I try to get that path in front of #pagetop, it
> > is filtered out
> > by Typo3, as long as I refer to the url of the current page.
> > For example I tried:
> >     # NO GO...
> >     page.10 = TEXT
> >     page.10.typolink.parameter.data = field:uid
> >     page.10.typolink.section = pagetop
> >     page.10.typolink.returnLast = url
> > But the result is just "#pagetop". The RealURL alias path
> > only appears as
> > soon as I try to address a page different from the current 
> page, e.g.:
> >     # THIS WORK...
> >     page.10 = TEXT
> >     page.10.typolink.parameter = 123    <--some existing page uid!
> >     page.10.typolink.section = pagetop
> >     page.10.typolink.returnLast = url
> > In this case the result is  REALURL/ALIAS/PATH/#pagetop
> >
> >
> >
> > Whatever I try - as long as I address the current page, 
> Typo3 filters 
> > out the alias path from my links href and the jump to the named
> > anchor fails in
> > IE.
> > I would GREATLY appreciate some help on this one!
> >
> >
> > MANY THX in advance...
> > --
> > Jörg Wagner
> >
> >
> >
> 
> 
> 




More information about the TYPO3-english mailing list