Why does PocketQuery drop the pageid from the URL created with dynamic queries?

Malcolm Cook September 3, 2014

Is this a bug? Or am I using it wrong?

I embed a PocketQuery macro into my site as follows:

</ac:structured-macro> <ac:structured-macro ac:name="pocketquery">
          <ac:parameter ac:name="name">myQuery</ac:parameter>
          <ac:parameter ac:name="parameters">myParameter=%Joseph%</ac:parameter>
          <ac:parameter ac:name="allowgetparams">true</ac:parameter>
          <ac:parameter ac:name="includechangetemplate">true</ac:parameter>
        </ac:structured-macro>

Where the sql has been defined with single parameter, namely, :myParameter.

It displays fine when I save the page and the URL is:

http://confluencedev/pages/viewpage.action?pageId=11272196

However, when I use the included change template and update the value for myParameter to be Geoffry, and click 'update' I am navigated to a URL lacking the pageId, namely

http://confluencedev/pages/viewpage.action?pq_myParameter=Geoffry

Alas, the pageID is dropped. If I manually insert it into the URL, indeed the page is refreshed, and the parameter is taken.

Confluence Version 5.3
PocketQuery Version: 1.13.1

1 answer

1 accepted

1 vote
Answer accepted
Felix Grund (Scandio)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2014

Hi Malcolm!

Thank you for discovering this issue! It will be fixed with version 1.13.2 which I will release later this week.

Regards, Felix [Scandio]

Felix Grund (Scandio)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2014

Version 1.13.2 is now on the marketplace :)

Malcolm Cook September 9, 2014

Agreed - fully fixes the issues raised. Thanks.

Felix Grund (Scandio)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 11, 2014

Hi Malcolm! If you like PocketQuery, would you consider leaving a review at the Atlassian marketplace? We'd be very glad ;).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events