view website/src/site.js @ 2155:088d5f215d66 nginx_sites_addon

remove nginx_sites include https in nginx.conf.luan
author Violet7
date Tue, 27 Jan 2026 19:38:01 -0800
parents 31f006c64782
children
line wrap: on
line source

'use strict';

function setLanguage(lang) {
	console.log(lang);
	let path = location.pathname;
	if( path.match(/^\/[a-z]{2}\//) )
		path = path.substring(3);
	if( lang !== 'en' )
		path = "/" + lang + path;
	location = path;
}