How to remove page number form url

    By: Manu
    3 years ago

    You can change

    http://localhost/user/download/videos?page=2
    

    to

    http://localhost/user/download/videos
    

    To do this all you need to do when you want to fire a event. do this using javascript

    history.pushState({page: 1}, "", "/user/download/videos");
    

    You can see i provided "/user/download/videos" as argument. Just pass your desired path there.