Force Removal of Store Code (?___store=default) from URL’s in Magento
You may have noticed that even when you have ‘add store code to URL’s’ set in Magento’s system configuration set to ‘No’, when you insert a link into the HTML editor via Magento’s widget, it will/can often still add ?___store=default to the end of URL’s.
There’s a quick and simple fix by extending the Mage core.
Search for… (line 91 in Magento 1.7.x)
$this->_href = $this->_href . $symbol . "___store=" . $store->getCode();
And modify to…
$this->_href = $this->_href;
Upload and save your changes and you’ll now not have your widget (dynamically) inserted links getting appended with ?___store=default.