cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: Common practice: how to keep links to html-trees consistent
Date Tue, 20 Aug 2002 08:23:16 GMT
> From: Whalley, Anthony [mailto:anthony.whalley@pmisoftware.com] 
> 
> Make all your links relative to the root directory
> 
> Eg
> "/index.html"
> "/products/productA.html"

In this case browser interprets your links relative to the host and not the
application context. You should perform a transformation to generate links
like: <context-path>/index.html, etc.

Konstantin

> 
> -----Original Message-----
> From: Koen Pellegrims [mailto:koen.pellegrims@pandora.be] 
> Sent: 19 August 2002 21:43
> To: Cocoon-Users@Xml. Apache. Org
> Subject: Common practice: how to keep links to html-trees consistent
> 
> 
> Guys,
> 
> This is something that most of you *must* have come across at 
> one point or
> another, and I am just looking for the best solution (I know it is not
> really a Cocoon-question, but Cocoon might provide some nice 
> and elegant
> solution for this...)
> 
> Menu on my site that contains a link to the index-page 
> (index.html)  and
> links to (among others) a product-page. In the page-hierarchy, the
> product-pages are contained within a 'products' directory.
> 
> index.html
> products/productA.html
> products/productB.html
> 
> The problem arises when I display this menu on a product 
> page, because the
> browser (rightly so) interprets 'index.html' as being relative to the
> 'products'-directory.
> 
> So, whereas the link to 'index.html' is correct from the 
> index-page, it
> refers to 'products/index.html' on any product page. (and 
> even worse: a link
> to productA suddenly becomes a link to 
> products/products/productsA.html)
> 
> My question is simple: did any of you encounter this problem? And -of
> course- how did you solve it?
> 
> Koen
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> postmaster@pmg.ie.
> 
> Further information on PM
> can be found at http://www.pmg.ie
> ********************************************************************
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message