Made easier to leave the website

This commit is contained in:
Pierre 2018-05-12 12:34:39 +02:00
parent 1e299b6d5e
commit b412214976
2 changed files with 6 additions and 8 deletions

View File

@ -186,8 +186,9 @@ ComunicWeb.common.page = {
//Change page title
document.title = pageInfos.pageTitle;
//Change page URL
ComunicWeb.common.url.changeURI(document.title, pageURI);
//Change page URL, if required
if(additionnalData.no_url_update ? !additionnalData.no_url_update : true)
ComunicWeb.common.url.changeURI(document.title, pageURI);
//Save new url
this._current_url = window.location.href.toString();
@ -274,7 +275,7 @@ ComunicWeb.common.page = {
var currentPage = ComunicWeb.common.url.getCurrentWebsiteURL();
//Open a page
this.openPage(currentPage);
this.openPage(currentPage, {no_url_update: true});
},
/**

View File

@ -52,11 +52,8 @@ ComunicWeb.common.system = {
* Open a page
*/
if(!openPage){
//Get current page URI
var currentPage = ComunicWeb.common.url.getCurrentWebsiteURL();
//Open a page
ComunicWeb.common.page.openPage(currentPage);
//Refresh current page
ComunicWeb.common.page.refresh_current_page();
}
else
//Open specified page