[ http://mc4j.org/jira/browse/STS-158?page=all ]

Ben Gunter resolved STS-158.
----------------------------

    Resolution: Fixed
      Assignee: Ben Gunter  (was: Tim Fennell)

This appears to have been fixed with STS-262 (LinkTag.java revision 574). It 
will be available in release 1.5.

> LinkTag doesn't add contextpath if some part of the href contains the context 
> path
> ----------------------------------------------------------------------------------
>
>                 Key: STS-158
>                 URL: http://mc4j.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
>         Assigned To: 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.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to