cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pedrodecarvalh
Helper II
Helper II

Redirect after T&C

Hi everyone,

 

I would like to redirect always to Profile page after acepting the Terms and Conditions from Portals...

I tried the Authentication/Registration/ProfileRedirectEnabled but that also makes when the user login to go to the Profile Page, and during the Login i would like to redirect to the Home page...

 

How can i do it?

1 ACCEPTED SOLUTION

Accepted Solutions
Fubar
Solution Sage
Solution Sage

Actually, inside the Content Snippet "Account/Signin/TermsAndConditionsCopy" HTML update the form element's action attribute, by doing something like the following

 

 

 

<script>
$( document ).ready(function() {
    $('#terms-and-conditions-section').find('form').attr('action','/Account/Login/TermsAndConditions?returnUrl=%2Fprofile%2F');
});
</script>

 

 

 

View solution in original post

4 REPLIES 4
Fubar
Solution Sage
Solution Sage

Only thing i can think of would be to add some JavaScript in the HTML for the content snippet Account/Signin/TermsAndConditionsCopy and have it change/add the ReturnUrl parameter in the url to the page that you wan them to go to next

Any idea how it would be the code?

I was trying out some codes i found on internet but it didnt worked

Fubar
Solution Sage
Solution Sage

Actually, inside the Content Snippet "Account/Signin/TermsAndConditionsCopy" HTML update the form element's action attribute, by doing something like the following

 

 

 

<script>
$( document ).ready(function() {
    $('#terms-and-conditions-section').find('form').attr('action','/Account/Login/TermsAndConditions?returnUrl=%2Fprofile%2F');
});
</script>

 

 

 

View solution in original post

pedrodecarvalh
Helper II
Helper II

Hi Fubar,

 

That was perfect and made exactly what i needed!

Thanks!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,404)