portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ate Douma (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-275) Option to make Action URLs relative or absolute
Date Tue, 20 Feb 2007 16:19:05 GMT

    [ https://issues.apache.org/jira/browse/JS2-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474487

Ate Douma commented on JS2-275:

To be able to use relative urls only, the currently used <base> tag poses a problem.
While most browsers support a relative url value (e.g. /jetspeed/) for the base tag href attribute,
most notably IE does NOT (and the w3c specification says it should be an "absolute" url, so
Microsoft seems to be right on this once).

After looking into our usage of the base tag, I don't see any benefit of it and its rather
easy to use qualified urls for all our (decoration) resources and not depend on the base tag
at all.
I guess the base tag usage is legacy from the time when we used the content server and our
decorations were still hidden beneath /WEB-INF.

So I'm going to solve this by making all our generated (decoration) resource references properly
context relative urls and remove the <base> tag from our demo decorator header.vm templates.

Note: I won't modify/remove the jetspeed-macros.vm BaseHref macro or the HeaderResource.HEADER_SECTION_BASE_TAG
based generation of a base tag like used by the desktop (method HeaderResourceImpl.jetspeedGenerateBasetag()),
so custom decorations or desktop themes depending on them will continue to work as is.
But, to be able to access the portal behind a Proxy front end and get a proper look&feel,
you will need to remove the generation of these <base> tags from your custom decoration
templates and/or through HeaderResource (assembly/headtag.xml, setting header.basetag) yourself.

> Option to make Action URLs relative or absolute
> -----------------------------------------------
>                 Key: JS2-275
>                 URL: https://issues.apache.org/jira/browse/JS2-275
>             Project: Jetspeed 2
>          Issue Type: New Feature
>    Affects Versions: 2.1
>            Reporter: David Sean Taylor
>         Assigned To: Ate Douma
>             Fix For: 2.1
>         Attachments: j2-secure.patch
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and
render URLs optional.
> A system wide setting would be set to either relative or absolute

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message