How to get the URL of current page and output in a string?

0
Hello all, How to get the URL of current page and output in a string? For example, the page’s URL is http://localhost:8081/p/Details/116000. Maybe there is a button to call a microflow, and get this page’s URL and return it as a string so that I can use it in other activities. I tried to use community Commons Module and Deep Link Module. But maybe I use a wrong action, it doesn’t work correctly.  Thanks in advance.
asked
1 answers
2

Use JavaScript. Create a JavaScript action using "window.location.href" and call it in a nanoflow from the page. 

answered