wnm168 commited on
Commit
f706bd7
·
verified ·
1 Parent(s): eb6f6c8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -1051,7 +1051,7 @@
1051
  const [response, error, loading, fetchDataByPage] = getFiles();
1052
  const { folder } = useParams();
1053
  const location = useLocation();
1054
- const [path, setPath] = useState(location.pathname);
1055
  const [page, setPage] = useState(1);
1056
  const [query, setQuery] = useState({ "path": path, "password": "", "page": page, "per_page": 0, "refresh": true });
1057
  const setting = STORE.getState().settings;
@@ -1105,7 +1105,7 @@
1105
  row.is_dir ? <Nav.Link
1106
  as={Link}
1107
  className="nav-link text-dark"
1108
- to={encodeURI(path + row.name + '/')}
1109
  target="_blank"
1110
  >
1111
  <Icon
 
1051
  const [response, error, loading, fetchDataByPage] = getFiles();
1052
  const { folder } = useParams();
1053
  const location = useLocation();
1054
+ const [path, setPath] = useState(decodeURI(location.pathname));
1055
  const [page, setPage] = useState(1);
1056
  const [query, setQuery] = useState({ "path": path, "password": "", "page": page, "per_page": 0, "refresh": true });
1057
  const setting = STORE.getState().settings;
 
1105
  row.is_dir ? <Nav.Link
1106
  as={Link}
1107
  className="nav-link text-dark"
1108
+ to={decodeURI(path + row.name + '/')}
1109
  target="_blank"
1110
  >
1111
  <Icon