Bug 1533363

Summary: [trello mEpUJ2kQ] Wrongly jump to homepage when click 'Clear Filters'
Product: OpenShift Container Platform Reporter: shahan <hasha>
Component: Management ConsoleAssignee: David Taylor <dtaylor>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, jforrest, jokerman, mmccomas, spadgett, xiaocwan
Target Milestone: ---   
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-29 12:33:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description shahan 2018-01-11 07:36:24 UTC
Description of problem:
Wrongly jump to homepage when clicking clear 'Clear Filters'

Version-Release number of selected component (if applicable):
v3.9.0-0.9.0

How reproducible:
Always

Steps to Reproduce:
1. login web console, go to overview page and input invalid keyword into the quick search catalog bar in the top-right corner and hit Enter
2.  click 'Clear Filters' under the text 'No results match.'
3.

Actual results:
 Wrongly jump to homepage when clicking clear 'Clear Filters'

Expected results:
 Should have the same behavior as the 'Clear All Filters' which will stay the new Catalog page 

Additional info:

Comment 1 David Taylor 2018-01-15 14:44:15 UTC
Hi, this PR went in recently to fix this issue:

https://github.com/openshift/origin-web-console/pull/2652

Comment 2 XiaochuanWang 2018-01-22 07:37:12 UTC
Checked on ocp v3.9.0-0.21.0, there is another issue:
When filter result is empty, user click "Clear Filters." which is in the center of the page, it directs to "unsafe:javascript:void(0)" as url address.
Seems "unsafe:javascript:void(0)" does not work.

Comment 3 David Taylor 2018-01-22 14:14:33 UTC
>  it directs to "unsafe:javascript:void(0)" as url address.
>  Seems "unsafe:javascript:void(0)" does not work.

'javascript:void(0)' is not supposed to actually do anything, it is a 'null' operation.  As long as the filters are cleared, then the link is working.

Comment 4 David Taylor 2018-01-24 15:50:57 UTC
Fixed via PR:  https://github.com/openshift/origin-web-console/pull/2703

Comment 6 XiaochuanWang 2018-01-29 02:30:41 UTC
Verified on v3.9.0-0.31.0
Both original description and Comment 2 are not reproduced now.