Page 1 of 1

Adding query parameters to Export URL

Posted: Mon Mar 11, 2024 4:28 pm
by stephen21345

Hi

I am adding another Export Icon to export CSV, but adding a query parameter &do_stuff=1 so that if this is set then I can change the output from Row_Rendered. However adding this to the url http://localhost/projectname/api/export/csv/my_tablename&dostuff=1 will result in a 401 Unauthorized. How can I allow the URL to work with my query parameters added so I can manipulate the export as required.

Regards
Stephen


Re: Adding query parameters to Export URL

Posted: Mon Mar 11, 2024 4:30 pm
by arbei

Note that the original URL does not have query string, if you want to add query string, you should use "?", not "&".


Re: Adding query parameters to Export URL

Posted: Mon Mar 11, 2024 4:37 pm
by stephen21345

Yep thats it. Thanks