ngOnInit () {
// Subscribe to route changes
- const routeParams = this.route.snapshot.params
+ const routeParams = this.route.snapshot.queryParams
this.loadRouteParams(routeParams)
this.resizeSubscription = fromEvent(window, 'resize')
protected setNewRouteParams () {
const routeParams = this.buildRouteParams()
- this.router.navigate([ this.currentRoute, routeParams ])
+ this.router.navigate([ this.currentRoute ], { queryParams: routeParams })
}
protected buildVideoPages () {
this.subActivatedRoute = this.route.queryParams.subscribe(
queryParams => {
const querySearch = queryParams['search']
+
if (!querySearch) return this.redirectService.redirectToHomepage()
if (this.otherRouteParams.search === querySearch) return