I have a resource that is a .
This means my url looks like this:
http://myapp/index/.
And i need to add query parameters so that it looks like this:
http://myapp/index/.?type=xml
I use Freemarker for the presentation of my resources and made a percent-encoding hack for this case:
<#if key?matches("\\.")>
<li><a href="${contextPath}/index/%2E">${key}</a></li>
</#if>
This works fine for Firefox. But all other Browsers like IE, Safari, Chrom, Opera just ignore my url encoded dot (http://myapp/index/%2E
).
Any suggestions?
http://localhost/index%2ehtml
, Firefox (14) and Chrome convert it to a.
. This is specified in section 2.3. Later in section 3.3, it says that.
and..
are for relative reference within the pathname. So,http://localhost/%2e
would essentially meanhttp://localhost/
. – Allinclusive