Mountain View 1600, CA 94043
+1 650-253-0000
name@example.com
Web
Site
Search
Register
Login
DNN Home
Services
-
DotNetNuke Support
-
CRM Systems
DNN
-
DotNetNuke Modules
-
Module Downloads
-
Module Upgrade Policy
DNN Support
-
Module Update News
-
Knowledge Base
-
License Management
-
Invoice History
Module Downloads
Blog
Store
Contact Us
-
About Us
Search
Home
1
2
3
4
5
Home
Support
Advance Login M...
storing the return URL
Previous
Next
9/10/2013 4:32 AM
Joel Levy
Joined: 1/31/2013
Posts: 3
storing the return URL
(United States)
i would like to be able to store the Return URL in a profile field whenever someone registers using the IW Advanced Login registration page. We have numerous pages that are behind the login/registration. We would like to capture which one they were trying to visit when they registered (don't care about when an existing user logs in, only new users. Suggestions?
Thanks in advance.
9/10/2013 6:16 AM
Joel Levy
Joined: 1/31/2013
Posts: 3
Re: storing the return URL
(United States)
I figured it out. So, for anyone interested, I added this code to my registration form:
<script type="text/javascript">
$(function () {
$.urlParam = function(name){
var results = new RegExp("[\\?&]" + name + "=([^&#]*)").exec(window.location.href);
if (results==null){
return null;
}
else{
return results[1] || 0;
}
};
$("#dnn_ctr3571_signin_SourceURL").val(decodeURIComponent($.urlParam("returnurl")));
})
</script>
and then added a hidden profile field called SourceURL to DNN and the form:
<div id="SourceURL_section" style="display:none;" class="advRegister_box">
[SourceURL|class=advLogin_text|tabindex=25]
</div>
Let me know if you have any improvements.
9/10/2013 11:45 PM
DNN Module Support
Joined: 8/28/2006
Posts: 2065
Re: storing the return URL
(Australia)
Thanks for posting this. It may assist others.
Page 1 of 1
Previous
Next
Home
Support
Advance Login M...
storing the return URL