diff --git a/src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts b/src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts
index 9cbc3878b..72bcdb169 100644
--- a/src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts
+++ b/src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts
@@ -72,7 +72,7 @@ export class CoreH5PIframeComponent implements OnChanges, OnDestroy {
this.subscription = router.events
.pipe(filter(event => event instanceof NavigationEnd))
.subscribe((event: NavigationEnd) => {
- if (!this.iframeLoadedOnce || event.urlAfterRedirects == this.currentPageRoute) {
+ if (!this.iframeLoadedOnce || event.urlAfterRedirects !== this.currentPageRoute) {
return;
}