Is it possible to hide Pocket Query get parameters?

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

This widget could not be displayed.

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)

This widget could not be displayed.

Yes, is that possible? That would be great!

This widget could not be displayed.

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)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Aug 14, 2018 in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

172 views 12 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you