I have two websites in my Magento site and I want to put the url from the other website in the footers by cms_page using page builder.

I know that i can get the base url using {{config path="web/secure/base_url"}} but there is a way to get the base url of the other website like that?


2 Answers 2


Using the following class Magento\Framework\App\Config\ScopeConfigInterface

You can access any config for any scope.


The scope can also be store for example.

  • Hi! Thanks for the answer but I need put the link in a cms page using page builder. So I think I cant use class or raw php code Commented Oct 19, 2023 at 12:26

I found the answer.

{{store url="" _scope=store_code}}cms_page_identifier

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.