0

Dear Userfrosting experts...

I have just installed Userfrosting on LAMP Stack. Ubutnu 16.04

The URL contains query strings : http://example.com/dashboard#&sort[table-activities][occurred_at]=desc&page[table-activities]=1&size[table-activities]=10

How can I get rid of these query strinngs ?

They look ugly !

Varun Verma
  • 542
  • 4
  • 17

1 Answers1

0

This is related to the TableSorter sort2hash plugin. The query strings are used to reapply the same sort and filter params if the page is accessed again.

It is enabled in uf-table. See USerFrosting document about Tables here : https://learn.userfrosting.com/4.2/client-side-code/components/tables

Louis Charette
  • 1,325
  • 1
  • 10
  • 34
  • Thanks Louis ... but how do I remove it ? I dont want these URL parameters in the URL string – Varun Verma Apr 06 '19 at 07:58
  • There's no on/off switch as this is a feature. You'll need to overwrite the default `uf-table` config for each table. For example in https://github.com/userfrosting/UserFrosting/blob/d312d1f054c11d4bec011935042f154a0ec63003/app/sprinkles/admin/assets/userfrosting/js/pages/dashboard.js#L35-L38 `activities.ufTable({ dataUrl: site.uri.public + "/api/activities", useLoadingTransition: site.uf_table.use_loading_transition, widgets: ['saveSort', 'filter', 'pager', 'columnSelector', 'reflow2'], });` – Louis Charette Apr 06 '19 at 14:36