Access page data from within my backend component

Hi all,

how to access page data (uuid or slug) from within my backend component (in the vue part)?
I need to pass it to the api to get the right page data.
Or is there a way to get the right page in the api, directly?

THX

Probably window.panel.view.id (or inside a Vue component also this.$panel.view.id) is what you need: Kirby Panel

thx for the answer, it always returns: site

Sorry it’s late over here. Should’ve been

this.$panel.view.props.model.id or this.$panel.view.path

works! this.$panel.view.props.model.uuid, thank you very much!