Datatable cookiename appends last portion of url

Datatable cookiename appends last portion of url

bstrechbstrech Posts: 4Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Datatables 1.9.4 -
I am not able to provide a link to my web-page or a Fiddle or live example since you can't recreate the issue there. I am using datatables in my rails application which has routes for specific dynamic content. For example a given page url that I might have would be "/devices/12345" where 12345 is the id of the device. It is desired to have the same sort, visible columns etc on all device pages, but when inspecting the cookie read/write the cookie name is appending the window.location.pathname.split('/').pop which is the device id in this case. So even though I am able to set the path on the cookie so that it is not on each unique url, it is saving a unique name for each device page.
Is this a bug or intended behavior?
This discussion has been closed.