Skip to main content
Version: 1.x

Function: navigateToHash()

navigateToHash(page, hash, options?): Promise<void>

Ai

Navigates to a specific hash directly.

Parameters

page

NavigationPage

Playwright Page (or compatible subset).

hash

string

The hash to navigate to (without leading '#').

options?

NavigationOptions

Navigation options.

Returns

Promise<void>

Capability

ui5Navigation.navigateToHash

Intent

Set the FLP URL hash directly for low-level navigation.

Guarantee

On success, the FLP hash is set to the given value and UI5 is stable.

Ai Context

Use when the full hash is known. For structured navigation, prefer navigateToIntent().

Sap Module

sap.ushell.Container — Direct hash manipulation via window.hasher

Example

await navigateToHash(page, 'Shell-home');