3.1 How to Make Links to WebTrac Pages and Require
Problem
How do I create an external link (i..e, in a RecConnect email) to my WebTrac login page that redirects elsewhere?
Examples:
- A link in a RecConnect email reminding members of their upcoming membership expiration with a link to Renew Your Pass By Clicking Here. You need patrons to login, but after login want them to automatically be redirected to the Pass Renewal page.
- A link in a RecConnect email to all users with a balance due with a link to Pay your balance, which redirects them to the payment page.
- A link on their Web site or in an email to Print a childcare statement, login first then go straight to the reports.
Solution
-
This renewal example is accomplished using the following link:
<Base HREF>/login.html?LoginRedirect=renewal.html&LoginRedirectParam1=module&LoginRedirectValue1=PM -
The Pay Old Balance example is accomplished using the following link:
<Base HREF>/login.html?LoginRedirect=history.html&LoginRedirectParam1=HistoryOption&LoginRedirectValue1=payold -
The Print Childcare Statement example is accomplished using the following link:
<Base HREF>/login.html?LoginRedirect=report.html&LoginRedirectParam1=option&LoginRedirectValue1=webchildcarestatement&LoginRedirectParam2=output&LoginRedirectValue2=stream
Additionally:
This can be used to redirect to essentially any WebTrac page passing any parameters you wish to pass. To break this down for any use, it is a normal URL to the Login.html page followed by:
?LoginRedirect=<HTML page you want to redirect to after login>&LoginRedirectParam1=<1st Parameter you wish to pass>&LoginRedirectValue1=<Value of the 1st parameter you wish to pass>&LoginRedirectParam2=<2nd Parameter you wish to pass>&LoginRedirectValue2=<Value of the 2nd parameter you wish to pass>
This could be extended for any number of parameters you want/need to pass with the redirect link, each needing to have a ParamName# and ParamValue#.
For Example: To create a link to the VSI demo login page and redirect to Activity Search results for Basketball programs for 5 years old boys use:
https://demo.vermontsystems.com/web/wbwsc/vsidemowt.wsc/login.html?LoginRedirect=search.html&LoginRedirectParam1=Module&LoginRedirectValue1=AR&LoginRedirectParam2=Type&LoginRedirectValue2=HOOP&LoginRedirectParam3=Age&LoginRedirectValue3=5&LoginRedirectParam4=Gender&LoginRedirectValue4=Male
For each additional parameter you wish to pass, the syntax is LoginRedirectParam#=<Param Name>&LoginRedirectValue#=<Param Value>. You need to increase the # for each additional parameter and match the param name and value to each other with the corresponding #.