craftcms / docs

Documentation for Craft CMS, Craft Commerce, and other official products.
https://craftcms.com/docs
38 stars 144 forks source link

[Content]: Environment variables cannot be used with sub-paths #532

Closed AugustMiller closed 3 months ago

AugustMiller commented 11 months ago

Product

Craft CMS

Description

From Discord:

[A] I didnt know that env vars cant have additional url segment. Maybe you could add input check into control panel so it explicitly warns against using env vars with additional segments? [B] I’ve seen a number of people run up against this [A] …more explicit warning in docs or control panel could be useful. So people know they cannot use subpaths with env vars.

We do state that this is a feature of aliases, but it may not be clear enough from the UI alone.