Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get a view action URL for a Page

flo November 8, 2012

Hi

when I retrive the URL of a Confluence page using the JAVA API it looks like this:

http://localhost:8090/display/LIN/parent+issue

In order to create remote application links which survive renaming the page I need a view action URL:

http://localhost:8090/pages/viewpage.action?pageId=524298

How can I get this URL using the API.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Trupti Kanase June 15, 2016

Hi @flo,

    Did you get any solution? I am looking for the same.

Thanks in advance.

0 votes
Eric Kim November 15, 2012

I can't see your localhost :p

anyway,if I understood your question properly, this could be the answer

Page page = pageManager.getPage(Long.parseLong(pageId));
String pageUrl = page.getUrlPath();

To use it in .vm, make pageUrl instance variable and call $action.pageUrl

TAGS
AUG Leaders

Atlassian Community Events