Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Landing page after signing out
When clicking the "Sign Out" link on the top-right corner, Vanilla sends the user to an almost blank page with a "You have been signed out successfully" message. What would I need to change so the user will be kept on the same page or at the very least sent to the forum index upon signing out?
Thanks a bunch!
Thanks a bunch!
0
Comments
It shouldn't be too hard to to re-direct to another page with relevant content.
Sounds like an extension request to me.
people_signout_form_validpostback.php
If you want to go the extension route, here's the relevant Delegates:
Leave::PreValidPostBackRender
,Leave::PostValidPostBackRender
(location inlibrary/People/People.Control.Leave.php
)Can you explain what to change in the "/people/People.Control.Leave.php" to have it redirect to Vanilla index or another URL?
<?php // Note: This file is included from the library/People/People.Control.Leave.php class. echo '<div class="FormComplete"> <h2>'.$this->Context->GetDefinition('SignOutSuccessful').'</h2> <ul> <li><a href="'.GetUrl($this->Context->Configuration, $this->Context->SelfUrl).'">'.$this->Context->GetDefinition('SignInAgain').'</a></li> </ul> </div>'; // Redirect back to index after signing out header('Location: '.GetUrl($this->Context->Configuration, 'index.php')); ?>
Thanks sjeeps!