Get route path

28 views
Skip to first unread message

Leonardo Carvalho

unread,
Sep 8, 2022, 4:22:45 PM9/8/22
to Fusio
Hi,

I would like to know if it is possible to get the route path inside the action? The goal would be to send this information within my internal log generation.


Ex: get -> "/product/sale"

Christoph Kappestein

unread,
Sep 8, 2022, 4:37:48 PM9/8/22
to Fusio
Hi,

so out of the box this is not easy possible but if you have a custom action you can take a look at the "context" object s.
and

there you can get the current route id, which you could also use to obtain the actual path from the "fusio_routes" table.
But maybe the route id is also enough for your log generation.

best regards
Christoph
Reply all
Reply to author
Forward
0 new messages