magento/magento2 — pull request #180 by ndlinh (2012-12-31 06:18:34+00:00)
Title: Reset link type for getBaseUrl

Mage_Core_Block_Abstract has cached $_urlBuilder object, so if we don't reset url type, getBaseUrl() without specific type will use previous url type. Eg: http://localhost/media/wishlist/ instead of http://localhost/wishlist/ in top links.