[Typo3] Realurl and Linking to Anchors with Name Attributes
    Aldo Polli 
    a.polli at mir.it
       
    Tue Sep 13 11:40:29 CEST 2005
    
    
  
Nathan Russell wrote:
> I'm getting ready to relaunch my company's site that uses the realurl 
> extension and it works pretty good. The one thing I can't figure out is 
> how to use the <link> tag or standard anchor tag to link to a tag with 
> the name=" " attribute somewhere further down on the page. No matter 
> what I do I get taken back to the root of my site. I can do it if I use 
> the php link and id number but not with realurl.
> 
> Any options? Ideas?
> 
> Nate
> 
I have a similar problem.
I use realurl and in the template I set
config.baseURL = http://www.mysite.org/
According to this the html pages are generated with the base tag.
<base href="http://www.mysite.org/" />
If I insert the link <A href="#down">go down</A> and I click it, the 
browser open the url http://www.mysite.org/#down
If I edit a text content element in a page with the rich text editor 
(rte extension) and I add a link with the 'add link' rte function 
selecting the content element 43 in the page with id 34 in the source 
code I have:
<P><A href="http://www.mysite.org/?id=34#43" target="">test link</A></P>
If the page 34 is different from the page I was editing, realurl works 
fine and generates a link like this
<P><A href="url/to/page/#43" target="">test link</A></P>
If the page 34 is the same page I was editing, realurl generates a link 
like this
<P><A href="#43" target="">test link</A></P> a
and if I click it the browser open the (wrong) url http://www.mysite.org/#43
Ciao,
Aldo polli
    
    
More information about the TYPO3-english
mailing list