[
https://issues.apache.org/jira/browse/OFBIZ-10599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16660703#comment-16660703 ]
Dennis Balkir commented on OFBIZ-10599:
---------------------------------------
This patch is an updated version of my patch from the old issue and adds the response-type "url-redirect".
This is simply used like request-redirect, except with URL.
Some exmaple code:
{code:java}
<request-map uri="sendWhatsApp">
<security https="true" auth="false"/>
<response name="success" type="url-redirect" value="whatsapp://send">
<redirect-parameter name="text"/>
</response>
<response name="fail" type="request" value="suggestProduct"/>
<response name="error" type="request" value="suggestProduct"/>
</request-map>
{code}
This will generate a URL like this: {{whatsapp://send?text=LoremIpsum}}, which can be used to send a prepared WhatsApp message with given text to some other person.
> Create an "url-redirect" response type
> --------------------------------------
>
> Key: OFBIZ-10599
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10599> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Trunk
> Reporter: Jacques Le Roux
> Assignee: Dennis Balkir
> Priority: Minor
> Attachments: OFBIZ-10599_RequestHandler_url-redirect.patch
>
>
> As discussed with Dennis in OFBIZ-10569, the idea is to implement an "url-redirect" response type where an external URL can be set with redirected parameters like it's done with request-redirect which is only internal.
> Thinking about it we could maybe enhance request-redirect to do both with a specific syntax for external URLs, but it's only thoughts, did not check code...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)