How to set URL params...

How to set URL params...

astonMastonM Posts: 1Questions: 1Answers: 0

... by clicking some filter i want to insert this key/value pair into the URL.
This URL i want to share and if someone is clicking this link, the result is sorting by these key/values.

is it a main function of this plugin? i cant find anything, maybe im blind, sorry.

Answers

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin

    DataTables does not rewrite the URL in any form. You could make use of the state saving callback to do it (stateSaveCallback) I guess, although it might annoy users who don't want their back button to have that behaviour. Another option would be to do something like Google does with maps and have a "link" option which when clicked will generate a link. Again that isn't a function of DataTables core, but perfectly possible to do with the API.

    Allan

This discussion has been closed.