Enable usage of tokens

Created on 5 February 2020, over 4 years ago
Updated 28 March 2024, 3 months ago

To refer to a sitemap.xml file from the robots.txt file, an absolute url is needed:

Sitemap: http://www.example.com/sitemap.xml

We preferred not to 'hard-code' the base url into the robots.txt settings as this is exported as configuration and has to differ between environments (eg. staging, production).

See the attached patch which allows usage of tokens in the robots.txt file, so we can enter

Sitemap: [site:url]sitemap.xml

instead.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇳🇱Netherlands Ruuds

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024