diff --git a/conf.py b/conf.py index b00be5376..ed1ae0c85 100644 --- a/conf.py +++ b/conf.py @@ -142,7 +142,7 @@ supported_languages = { } # The specifications of redirect rules used by the redirects extension. -redirects_file = '../redirects.txt' +redirects_file = 'redirects.txt' #=== Options for HTML output ===# diff --git a/extensions/redirects/__init__.py b/extensions/redirects/__init__.py index 1ba401d60..a4c670341 100644 --- a/extensions/redirects/__init__.py +++ b/extensions/redirects/__init__.py @@ -12,7 +12,7 @@ TEMPLATE = '
< logger = logging.getLogger(__name__) def generate_redirects(app): - path = os.path.join(app.srcdir, app.config.redirects_file) + path = os.path.join(app.confdir, app.config.redirects_file) if not os.path.exists(path): logger.warning("Could not find redirects file at '%s'", path) return