[
http://www.stripesframework.org/jira/browse/STS-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter closed STS-158.
--------------------------
> LinkTag doesn't add contextpath if some part of the href contains the context
> path
> ----------------------------------------------------------------------------------
>
> Key: STS-158
> URL: http://www.stripesframework.org/jira/browse/STS-158
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.3
> Environment: 1.3 Beta 1
> Reporter: Jeppe Cramon
> Assignee: Ben Gunter
> Fix For: Release 1.5
>
>
> Hi
> If the href in anyway contains the contextpath then the LinkTag wont
> preappend the context path.
> Example: context path = "/user"
> href=
> "/someurl/someaction.action?returnPage=/user/someurl2/someaction2.action"
> Since the test on doEndTag just checks with a contains() this will always
> fail to preappend /user to the href:
> doEndTag code:
> // Append the context path, but only if the user didn't already
> if (originalHref.startsWith("/") && !"/".equals(contextPath)
> && !originalHref.contains(contextPath + "/")) {
> href = contextPath + href;
> }
> /Jeppe
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development