tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: "/" getting added to action path
Date Fri, 08 Jun 2012 10:11:44 GMT
2012/6/7 Dharamshila Khandelwal <dharmshila.k@gmail.com>:
> I use the URL like this:
>
> <link rel="stylesheet" href="style/core/style.css" type="text/css">
>
> Once I click save, it add 'action' in front of it.
> Please note that this problem is only with IE7 & 8. This works absolutely
> fine in IE6.
>

Relative URLs are evaluated by browser  relative to the URL of the
page where they are located. If URL that was used to load your page
changes from "foo" to "foo/action" (i.e. if both foo and foo/action
display the same HTML page), relative URLs will stop working for the
latter.

The ones that will continue to work are
- Absolute URLs (http(s)://...)
- URLs that are relative to the root of the server (ones that start with '/')

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message