File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 37
37
from mkdocs .structure .files import File , Files
38
38
from mkdocs .utils import is_error_template
39
39
from re import Match
40
- from urllib .parse import ParseResult as URL , urlparse
40
+ from urllib .parse import ParseResult as URL , urlparse , unquote
41
41
from xml .etree .ElementTree import Element , tostring
42
42
43
43
from .config import PrivacyConfig
@@ -515,7 +515,7 @@ def _path_from_url(self, url: URL):
515
515
# Create a file for the given path
516
516
def _path_to_file (self , path : str , config : MkDocsConfig ):
517
517
return File (
518
- posixpath .join (self .config .assets_fetch_dir , path ),
518
+ posixpath .join (self .config .assets_fetch_dir , unquote ( path ) ),
519
519
os .path .abspath (self .config .cache_dir ),
520
520
config .site_dir ,
521
521
False
Original file line number Diff line number Diff line change 37
37
from mkdocs .structure .files import File , Files
38
38
from mkdocs .utils import is_error_template
39
39
from re import Match
40
- from urllib .parse import ParseResult as URL , urlparse
40
+ from urllib .parse import ParseResult as URL , urlparse , unquote
41
41
from xml .etree .ElementTree import Element , tostring
42
42
43
43
from .config import PrivacyConfig
@@ -515,7 +515,7 @@ def _path_from_url(self, url: URL):
515
515
# Create a file for the given path
516
516
def _path_to_file (self , path : str , config : MkDocsConfig ):
517
517
return File (
518
- posixpath .join (self .config .assets_fetch_dir , path ),
518
+ posixpath .join (self .config .assets_fetch_dir , unquote ( path ) ),
519
519
os .path .abspath (self .config .cache_dir ),
520
520
config .site_dir ,
521
521
False
You can’t perform that action at this time.
0 commit comments