Skip to content

Return Url

Target Audience: Users, Developers, Stakeholders

Introduction

This section describes how you can use return URLs to send the user back to your application after an action in the PCP.

How is it used

You append a return URL query parameter to a compatible URL in the PCP.

Where are return URLs used

Return URLs can be used in most actions found in the PCP.

Today (2020-03-12) you can use return URL during:

Purchase

Will populate "Back" buttons and the receipt page with the supplied return URL

Append returnUrl a query parameter to the purchase URL.

/v2/shop/adeprimo_digital?returnUrl=http://myreturnurl.com 
Default return url

A default return url for purchases can be set in PAP / Control panel / Organisation settings, resource key SETTINGS_DEFAULT_RETURN_URL. The value specified here will be used as the default return url on purchases when no return url is specified in the link.

Registration

Will populate "Back" buttons and the confirmation page with the supplied return URL

Append account origin a query parameter to the different registration URLs.

/loginregistration?returnUrl=http://myreturnurl.com
/registration/register?returnUrl=http://myreturnurl.com

Activation

Will populate "Back" buttons and the confirmation page with the supplied return URL

Append account origin a query parameter to the activation URL.

/Registration/Lookup?returnUrl=http://myreturnurl.com