diff --git a/public/app/angular/AngularApp.ts b/public/app/angular/AngularApp.ts index ffa585766dc..2f45a909196 100644 --- a/public/app/angular/AngularApp.ts +++ b/public/app/angular/AngularApp.ts @@ -103,6 +103,12 @@ export class AngularApp { } bootstrap() { + // Do not initalize angular when the path contains an interpolation directive + const { pathname } = window.location; + if (pathname && (pathname.includes('%7B%7B') || pathname.includes('{{'))) { + return; + } + const injector = angular.bootstrap(document, this.ngModuleDependencies); monkeyPatchInjectorWithPreAssignedBindings(injector);