Environment Variables/Aliases not parsed for humans.txt, though proposed in Text Field
Closed this issue · 1 comments
hldrm commented
Describe the bug
When choosing an environment variable or an alias as Entity URL for Creator, the humans.txt file includes the variable name instead of parsing the variable.
Since environment variables / aliases are being proposed by the input field (even when entering the literal URL), I consider it a bug, not a feature request.
To reproduce
Steps to reproduce the behaviour:
- Go to "Control Panel > SEOmatic > Site Settings > Creator"
- Click into input text field for "Entity URL"
- Choose one of the Environment Variables or Aliases in the entries liest popping up, e. g. "@web – https://example.com" or "$SITE_URL – https://example.com"
- navigate to https://example.com/humans.txt, find in Creator section: "URL: @web" instead of "URL: https://example.com"
Expected behaviour
Expected to find a humans.txt looking as follows:
/* TEAM */
Creator: [...]
URL: https://example.com
Screenshots
-
choosing "@web"
Versions
- Plugin version: 3.4.20
- Craft version: Craft Pro 3.7.24
khalwat commented
Addressed in: 940e54b
You'll need to paste this into your humans.txt
template for it to apply to your existing site, however:
/* TEAM */
Creator: {{ seomatic.site.creator.genericName ?? "n/a" }}
URL: {{ parseEnv(seomatic.site.creator.genericUrl) ?? "n/a" }}
Description: {{ seomatic.site.creator.genericDescription ?? "n/a" }}
/* THANKS */
Craft CMS - https://craftcms.com
Pixel & Tonic - https://pixelandtonic.com
/* SITE */
Standards: HTML5, CSS3
Components: Craft CMS 3, Yii2, PHP, JavaScript, SEOmatic