*

Vlad7

  • ****
  • 244 posts
republish the list without redirecting to another page
« 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 ?

Marked as best answer by frosticek on September 23, 2023, 07:34:16 PM
*

mwindey

  • *****
  • 475 posts
Re: republish the list without redirecting to another page
« Reply #1 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']);