You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created by: Christian ([email protected]) on 2015/03/09 00:49:13 +0000
Votes at time of UserVoice import: 3
I think it would be great if there was a siteUrl variable available without the locale part.
Some setups make it necessary to use absolute URLs to static files, as relative and root relative paths won't work (read the linked SE post). It would be great if there was a better way than doing this:
This discussion was converted from issue #1098 on July 13, 2021 04:02.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think it would be great if there was a
siteUrl
variable available without the locale part.Some setups make it necessary to use absolute URLs to static files, as relative and root relative paths won't work (read the linked SE post). It would be great if there was a better way than doing this:
http://craftcms.stackexchange.com/questions/11152/localized-environment-variables-based-on-siteurl
Beta Was this translation helpful? Give feedback.
All reactions