js obtient une URL de base
var url = window.location.origin;
Skipper
var url = window.location.origin;
console.log(window.location.origin);
var currentURL = $(location).attr('href');
var currentURL = window.location.href;