1

I have a posts listing page, my requirement is that I want to change the url on the click of the post and expand the post to full detail. I am not sure if this can be done without refresh. Any ideas how this can be done?

1

you need to using jquery function functionality

<script>
var current_main = window.location.pathname;
var current= document.URL;
//var lastElement = current.substr(current.lastIndexOf('/') + 1);
var main_url = currentq+"?"+thechosenone+"="+thechosenone;
var main =  history.pushState(current,"", main_url );
</script>

by using this you can able to append the url's with specified get methods. I hope this will help you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.