Commit 39305f72 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): show categories check

1 merge request!486WIP: (feat): Minds Pro (development branch) - Release 2
Pipeline #75394729 canceled with stages
......@@ -83,8 +83,13 @@ export class ProChannelComponent implements OnInit, OnDestroy {
}
this.currentURL = navigationEvent.urlAfterRedirects;
const type = this.currentURL.split('/');
this.shouldShowCategories(type[type.length - 1]);
const segments = this.currentURL.split('/');
let lastSegment = segments[segments.length - 1];
let paramIndex = lastSegment.indexOf(';');
const type = paramIndex !== -1 ? lastSegment.substring(0, paramIndex) : lastSegment;
this.shouldShowCategories(type);
this.setTitle();
}
} catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment