During an extended debugging session I tracked down an error with a third party module down to the use of URL_TYPE_LINK and URL_TYPE_WEB passed to the following function:


When looing at the function you can see that for URL_TYPE_WEB the store code is not added to the URLs.

In our case the URL was used in a for REST calls, so using URL_TYPE_WEB leads to not include the store code in the URL and failing REST calls at the backend.

Now my question: What is the intention of having both of these URL types? Is there any reason to use the WEB type or should always use the link type?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.