The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to hide Pocket Query get parameters?

Marvin Gooßens
December 8, 2016

I use the following function in my Pocket Query template

(function() {
    function reload(queryName, queryParameters) {
        var container = $('.pocketquery-dynamic-load[data-query="'+queryName+'"]');
        var dataIndex = container.data('index');
        var data = PocketQuery.getDynamicLoadData(dataIndex);
        data.queryParameters = queryParameters;
        PocketQuery.load({
                container: container,
                data: data
        });
    }
     
    $('.pocketquery-result').on('change', '#select-test', function() {
        var queryParameters = { inputValue: $('#select-test').val() };
        reload('Test_ReloadOnChange', queryParameters);
    });
}());

But the get parameter is added to the url.

Is there a way to avoid that?

I need the initial value when I reload the page.

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
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 Champions.
December 9, 2016

Hi Marvin!

Did you check the value "Enable dynamic parameters" in your macro? This causes the parameters being added to the URL so you can create permalinks to the page and the macro will run with the values in the URL. If you only check "Load macro dynamically" and NOT "Enable dynamic parameters" it should work as you want it.

Let me know if it works!

Felix (Scandio)

0 votes
Marvin Gooßens
December 9, 2016

Yes, is that possible? That would be great!

0 votes
Christian Koch
Contributor
December 9, 2016

Hi Marvin, I'm not sure wether i understand your question. You want to use dynamic parameters but not as GET parameters visible in the url. Is that right? cc: @Felix Grund (Scandio)

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events