1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fixing itemId in SidebarNavItem (#1638)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2020-12-04 10:25:11 +03:00 committed by GitHub
parent d3106dc90f
commit afc4ca0ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,9 @@ class SidebarNavItem extends React.Component<SidebarNavItemProps> {
public context: SidebarContextValue; public context: SidebarContextValue;
get itemId() { get itemId() {
return this.props.url; const url = new URL(this.props.url, `${window.location.protocol}//${window.location.host}`);
return url.pathname; // pathname without get params
} }
@computed get isExpanded() { @computed get isExpanded() {