Artus2000 Posted November 19, 2012 Share Posted November 19, 2012 (edited) Hello, I use AgileMultipleSeller module to allow people sell your products on my store. I would like to make something like, when i click (in the Back Office) logout, the system should logout the seller from the Back Office and Front Office as well. And it should move to the home page. Not to the Back Office login window like it is default. I made some basic changes but there is something on the address bar and I can't accept it, because it looks like a mess. I do changes in /admin/init.php file in this line: Tools::redirectAdmin('login.php'.(empty($destination) || ($destination == 'index.php?logout') ? '' : '?redirect='.$destination)); I change to: Tools::redirectAdmin('http://www.store_adrees.com/index.php?mylogout'.(empty($destination) || ($destination == 'index.php?logout') ? '' : '?redirect='.$destination)); Now it nearly works like I need, but after log out from BO and redirecting to the store home page (seller is also log out) but in address bar i see some mess code. Look at below. http : //www.store_adress.com/?mylogout?redirect=index.php?tab=AgileEmployees&token=7f69b499b212d5052cec6fd7175bcafb Any idea how I can clear browser address bar after redirecting and logout? Edited November 19, 2012 by Artus2000 (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted November 20, 2012 Share Posted November 20, 2012 have you tried this Tools::redirectAdmin('http://www.store_adrees.com/index.php?mylogout'); Link to comment Share on other sites More sharing options...
Artus2000 Posted November 20, 2012 Author Share Posted November 20, 2012 have you tried this It doesn't work: Error 310 (net::ERR_TOO_MANY_REDIRECTS) Link to comment Share on other sites More sharing options...
astriti Posted December 12, 2016 Share Posted December 12, 2016 It doesn't work:Error 310 (net::ERR_TOO_MANY_REDIRECTS) to me too Link to comment Share on other sites More sharing options...
shokinro Posted December 14, 2016 Share Posted December 14, 2016 @astriti Thanks for using our module, could you please tell me the version of your PrestaShop and version of the module you are using? I guess it might be a version mismatch issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now