tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milo Hyson <m...@cyberlifelabs.com>
Subject Baked-in context paths
Date Tue, 05 Nov 2013 18:35:32 GMT
As suggested, I'm bringing this issue to the list so that I might understand the thinking behind
an argued best practice. In https://issues.apache.org/bugzilla/show_bug.cgi?id=55734 it is
said that the correct way for a Tomcat application to construct internally-referencing URLs
is to include the context path so as to avoid relative linking. Given as justification was
the following article:

http://yoast.com/relative-urls-issues/

The problem is the article seems to be describing issues that are general in nature and not
specific to relative linking. For instance, incorrect links are incorrect links regardless
of the form they take. Testing should catch such things before live deployment.

I've used relative linking for years in many different systems without issue, so I'm left
wondering why baking-in the context path is considered proper.

- Milo Hyson
Chief Scientist
CyberLife Labs, Inc.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message