Function: getCurrentHash()
getCurrentHash(
page):Promise<string>
Defined in: src/modules/navigation.ts:400
Ai
Returns the current URL hash (without leading '#').
Parameters
page
NavigationPage
Playwright Page (or compatible subset).
Returns
Promise<string>
The current hash string.
Intent
Read the current FLP navigation hash to determine which app is active.
Ai Context
Pure read operation (no stability wait). Use for assertions or conditional navigation.
Sap Module
sap.ushell.Container — Read current FLP hash from window.location.hash
Business Context
Determine the current active SAP Fiori app from the URL hash.
Example
const hash = await getCurrentHash(page);
// 'PurchaseOrder-manage'