Skip to content

Bounce

Navigate the seller to a specific page within your embedded app.

Unlike standard JavaScript routing (like window.location.href), bounce tells the parent Seller Area to reload your app's iframe at the specified path and automatically inject the correct session and authentication parameters into the new URL.

Use this when you need to perform a hard navigation within your app while ensuring YouCan's authentication parameters remain intact.

Signature

ts
qantra.bounce(path: string): void

Parameters

ParameterTypeDescription
pathstringA path within your app (e.g., /settings, /orders/123)

Example

ts
import { bounce } from '@youcan/qantra';

// Hard navigate the app to the settings page, preserving session params
bounce('/settings');