ComunicWeb/assets/js/common/url.js

23 lines
501 B
JavaScript
Raw Normal View History

2017-01-08 15:17:22 +00:00
/**
* URL functions
*
* @author Pierre HUBERT
2017-01-21 18:30:27 +00:00
*/
ComunicWeb.common.url = {
/**
* Return current URL opened on the website
*
* @return {String} The URL opened on the website
*/
getCurrentWebsiteURL: function(){
//Retrieve website URL
var websiteURL = location.href;
//Extract the URI part for the app
var uripage = websiteURL.replace(ComunicWeb.__config.siteURL, "");
//Return result
return uripage;
},
};