Script
$(document).ready(function () {
var referrer = document.referrer;
// referrer = http://localhost:49972/Enerji/Kompanzasyon
$("#uygula_buton").click(function () {
if (referrer == "Enerji/Kompanzasyon") {
//
}else
{
//
}
});
});
referrer value is http://localhost:49972/Enerji/Kompanzasyon
, But I want to get only controller and action name like this Enerji/Kompanzasyon
. How to get this in jquery.
Thanks.