you should add `data.from_url = window.location.pathname;`