Skip to content
Snippets Groups Projects
Commit 5ef36520 authored by Ruben Bimberg's avatar Ruben Bimberg :computer:
Browse files

Fix bug when handling with escaped values

parent 9d134262
No related merge requests found
......@@ -380,7 +380,7 @@ export class HeaderComponent implements OnInit, AfterViewInit {
}
public navigateToOtherView() {
const url = this.router.url;
const url = decodeURI(this.router.url);
let newRoute = '/participant/';
if (this.userRole !== this.user.role) {
newRoute = this.user.role === UserRole.CREATOR ? '/creator/' : '/moderator/';
......
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