monakh2
6/26/2019 - 10:24 AM

JS get name of current page

function () {
			var page = window.location.pathname.match(/[^\/]+$/);
			return String(page).split('.')[0];
		}