[BUGFIX] Fixes detection of active page

This fixes detection of active page if configuration ``useShortcutUid`` is used.