jreinke / magento-hide-default-store-code

Hide default store code from URLs
26 stars 19 forks source link

api url is not working #3

Open kai1083 opened 9 years ago

kai1083 commented 9 years ago

when i Hide Default Store Code then is the url www.domain.tld/index.php/api/xmlrpc not available.

shabeer-ali commented 7 years ago

Can you try the following changes in app/code/community/Bubble/HideDefaultStoreCode/Model/Observer.php

public function onFrontInitBefore(Varien_Event_Observer $observer) { if ($this->_canRewriteUri()) { /* @var $front Mage_Core_Controller_Varien_Front / $front = $observer->getEvent()->getFront(); $request = $front->getRequest(); $requestUri = $request->getRequestUri();

                        //This code is checking if it is API request
        if (strpos( $requestUri, '/api/') !== false) {
        return;
        } 
                    // end of the change