'How to add pagination in active state even refresh the page

I am using Admin LTE theme I have a problem with it's datatable. I want to pagination tab active even on page refresh, can you please help me with this.

here is the URL of pagination table. https://adminlte.io/themes/v3/pages/tables/data.html

image may clear to know my problem.

enter image description here



Solution 1:[1]

you can use Local Storage

that's mean if user clicked button you set page number in Local Storage and if refresh page you get page number and active this page

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ali memar