mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
revert to use pathname
This commit is contained in:
parent
ddcf396b11
commit
eb30780475
2 changed files with 13 additions and 5 deletions
|
@ -171,10 +171,9 @@
|
|||
$(dictinput).on('change', accept);
|
||||
|
||||
{
|
||||
let href = location.href;
|
||||
let iQ = href.indexOf('?');
|
||||
let iSlash = path.lastIndexOf('/',iQ-1);
|
||||
let filenames=path.substring(iSlash+1,iQ);
|
||||
let path = location.pathname;
|
||||
let iSlash = path.lastIndexOf('/');
|
||||
let filenames=path.substring(iSlash+1);
|
||||
{
|
||||
let iDot = filenames.indexOf('.');
|
||||
if(iDot>0)
|
||||
|
|
11
index.html
11
index.html
|
@ -1 +1,10 @@
|
|||
<meta http-equiv="refresh" content="0; url=en/index.html">
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>en/</title>
|
||||
<link rel="canonical" href="en/">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="refresh" content="0; url=en/">
|
||||
</head>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue