magento: added universal method to build URLs