Hi,

I use PageRenderLinkTransformer to rewrite a incoming link, if incoming link
has no locale as part of url, it works.

examples:

http://localhost:8080/1000/list
I have to rewrite it to /item/list/1000

http://localhost:8080/zh/1000/list
I have to rewrite it to /zh/item/list/1000

this does not work if I change the code below from 'item/list' to
'zh/item/list', any idea how? Thanks



public PageRenderRequestParameters decodePageRenderRequest(Request request)
{

       HashMap<String, String> info =
this.getIncomingInfoFromPath(request.getPath());
           return new PageRenderRequestParameters("item/list"
                   new URLEventContext(contextValueEncoder, new
String[]{info.get("code")}), false);
       }
       return null;  
   }

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/rewriting-incoming-url-with-locale-as-part-of-url-tp5048853p5048853.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to