Vérifiez le nom du doc en javascript
var path = window.location.pathname;
var page = path.split("/").pop();
console.log( page );
Jeff Spicoli
var path = window.location.pathname;
var page = path.split("/").pop();
console.log( page );