[ 
https://issues.apache.org/jira/browse/TAP5-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791033#action_12791033
 ] 

Howard M. Lewis Ship commented on TAP5-954:
-------------------------------------------

I also find the URLRewriteRule interface a bit unwieldy; I would have preferred 
three methods:

- processRequest(Request) : Request
- rewritePageRender(Link, PageRenderRequestParameters) : Link
- rewriteComponentEvent(Link, ComponentEventRequestParameters) : Link

and (per this bug)

- rewriteAsset(Link, Asset) : Link

Possibly an additional service could be created to make it easier to manipulate 
Links in the desired way.

> URLRewriting only applys to component event and page render requests, not to 
> asset requests
> -------------------------------------------------------------------------------------------
>
>                 Key: TAP5-954
>                 URL: https://issues.apache.org/jira/browse/TAP5-954
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Howard M. Lewis Ship
>
> Since you don't get a chance to manipulate asset requests when rendered, you 
> have to know to exclude them when processing an incoming request. This is one 
> more step (and one more bit of background knowledge needed) to hide the T5 
> application under a new URL (/t5 prefix for everything).

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

Reply via email to