How to get the previous page url using jquery?
I am using the following code to get the current page location
$(document).ready(function() { var path
Do you mean something like history.go(-1);? It will go back to the previous page.
history.go(-1);
window.history on MDN