Difference between URL_TYPE_LINK and URL_TYPE_WEB

by Alex   Last Updated August 14, 2019 14:09 PM

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:

Store->getBaseUrl()

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?



Related Questions


Is there a store manager for mac

Updated May 23, 2017 13:09 PM


How to get the store id from the code

Updated April 27, 2015 21:04 PM

POS with Magento integration with club/loyalty

Updated May 03, 2015 00:04 AM