Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Is there any way to get url path or inside nav_bar app



Gepostet 04. Feb. 2022

My nav_bar app is available by the url like this: https://{subdomain}.zendesk.com/agent/apps/event-example-app/subdir

Is there a chance to get path ("subdir" in the example) inside the app code.

I'm aware about the app.route.changed event, but it works only if path changed after the app is loaded and doesn't work if I open the url first time.

The usecase is as follows. I need to open the url from an external system (email for example) and be able to get the path in my code.

Please advice.


0

1

1 Kommentar

image avatar

Sebastiaan (Sparkly ⭐)

Community Moderator

Hey Michael,

Had to dig into some code, I've been running into this one as well.

For the initial app route when the app is loaded use client.context(). It's not explicitly documented, but I guess they are referring to it.

0


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post