Osclass Support Forums

Osclass plugin support => Backoffice Manager Plugin => Topic started by: Vlad7 on August 23, 2023, 07:50:13 PM

Title: republish the list without redirecting to another page
Post by: Vlad7 on August 23, 2023, 07:50:13 PM
Hello, opening the link /user/items?itemType=expired. we open a page with outdated lists when we click refresh list : (function_exists('republish_link_raw') we update the list and redirect to the page: /user/items. this is very inconvenient since we leave the page where we still have outdated lists that need to be updated, and we again need to find and open the page: /user/items?itemType=expired. Please tell me how to make it so that after the list is republished, it remains on the same page: /user/items?itemType=expired ?
Title: Re: republish the list without redirecting to another page
Post by: mwindey on September 23, 2023, 06:47:48 PM
@Vlad7

Changes in backoffice_manager / file republish.php is keeping users on same page:

Search for:
Code: [Select]
if($redirect == '') {
    if(osc_is_web_user_logged_in()) {
      header('Location: ' . osc_user_list_items_url());

Replace with:
Code: [Select]
if($redirect == '') {
    if(osc_is_web_user_logged_in()) {
      header('Location: ' . $_SERVER['HTTP_REFERER']);