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

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 I
Helper I

Hi Fubar,

 

That was perfect and made exactly what i needed!

Thanks!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,236)