0

Is there any way - in Expression Engine - that there is a global variable or even a constant to reference the domain of the current site you are working on instead of hard coding the domain name in your links?

1 Answer 1

1

You can use the global variable {site_url}

But if you code your links as "/path/to/a/page" (with the initial slash) then that will work just the same.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.