Is it possible to retrieve the current URL (the one displayed in the browser) at a certaint moment/action from a plugin? Is there a (static) method for this?
In JIRA I found com.atlassian.jira.web.ExecutingHttpRequest.get() but I could not find a counterpart in Confluence.
Community moderators have prevented the ability to post new answers.
I finally got it using javascript.
For my purposes I didn't need the whole address but only the JQuery parameters. I used parseQuery to get them using javascript.
Hey Alex!
We do have a great Documentation explaing how to fetch that:
I could paste the text here but would be ugly.
Cheers,
Guilherme!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guilherme.
Thanks for the suggestion but I am interested in the address displayed in the browser, not in the server base URL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.