Verified Commit 38d716e6 authored by Thomas Citharel's avatar Thomas Citharel 🏃🏻
Browse files

Disable redirection on usage


Signed-off-by: Thomas Citharel's avatarThomas Citharel <tcit@tcit.fr>
parent 8948c00a
......@@ -12,7 +12,7 @@ if (languages.includes(split)) {
language = split;
}
const url = new URL(window.location.href);
if (language && (url.pathname === "/" || url.pathname.startsWith("/use/"))) {
if (language && url.pathname === "/") {
url.pathname = `/${language}${url.pathname}`;
window.location.replace(url);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment