diff --git a/projects/adf-office-services-ext/src/lib/evaluators.ts b/projects/adf-office-services-ext/src/lib/evaluators.ts index ade0db3b0..20cfe649c 100644 --- a/projects/adf-office-services-ext/src/lib/evaluators.ts +++ b/projects/adf-office-services-ext/src/lib/evaluators.ts @@ -6,6 +6,11 @@ export function canOpenWithOffice( context: RuleContext, ...args: RuleParameter[] ): boolean { + const { url } = context.navigation; + if (url && url.startsWith('/trashcan')) { + return false; + } + // todo: needs to have typed access via SDK (1.8) const auth: AuthenticationService = (context).auth; if (auth && auth.isOauth()) {