• Home
  • Support
  • Forum
  • Cobalt 8
  • When logged in user apply a filter on a section removing filters returns user to his section homepage

jimie VIP
Total posts: 531
16 Jun 2014 10:20

Hello Sergey,

Is it possible that when a logged in user apply a filter on a section page, when he remove the applied filters instead to return him to his section homepage, to return him back to section main page ?

Regards

Last Modified: 15 Jul 2014


Konstantin
Total posts: 1,113
17 Jun 2014 06:25

Don't correct understand what you wont. You wont redirect user on section page when he remove filter on his homepage?


jimie VIP
Total posts: 531
17 Jun 2014 11:07

Hello Konstantin,

Basicly yes, when someone apply a filter on a section and then he clear those filters, instead to return him back to his section homepage, send him back to section page

Rgds


Sergey
Total posts: 13,748
18 Jun 2014 11:49

So user on homepage and after clear filters gets out? We checked that is not how it works. What is the page user on when he clean filters the same page he ends up on.


jimie VIP
Total posts: 531
18 Jun 2014 11:53

No here what happens

  1. User goes on section
  2. He apply filters coming from filter module on that page
  3. User clear filters, and instead to return back to section, it gets returned to his section homepage

Rgds


jimie VIP
Total posts: 531
23 Jun 2014 07:47

@Sergey, any idea ?

rgds


Konstantin
Total posts: 1,113
23 Jun 2014 08:00

Can't reproduce this issue. Provide a link where we can check it.


Konstantin
Total posts: 1,113
23 Jun 2014 09:55

How I understand you use custom template of filter module. Check have you in template module this code:

    <?php if($user_id):?>
        <input type="hidden" name="user_id" value="<?php echo $user_id;?>">
    <?php endif;?>

in hidden fields list in the end of form. user_id field must be include only if $user_id variable is set, now you always have it on form with 0 value, that's why it redirected on homepage.


jimie VIP
Total posts: 531
23 Jun 2014 10:03

Looking on the module template i have this:

<input type="hidden" name="user_id" value="<?php echo ($user_id ? $user_id.':admin' : 0);?>">

Should I replace it with the one you provided ?

Rgds


Konstantin
Total posts: 1,113
23 Jun 2014 11:05

I think so. Do you have last version of module? If not download it and compare.


jimie VIP
Total posts: 531
23 Jun 2014 11:27

Thanks Konstantine, that solved the problem

Rgds


jimie VIP
Total posts: 531
15 Jul 2014 18:04

Hello Konstantine,

I think there`s still a bug in this, because seams even using filter default template, when you try to remove the applied filters visiting website as a quest, the filters can't be removed anymore

Rgds


jimie VIP
Total posts: 531
15 Jul 2014 18:13

Update: Oky I found what was the cause, it was cause because of the siteground cache system plugin they use, once I disabled that plugin and the level 2 varnish cache things started to work again.. strange..

Powered by Cobalt