Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api url is not working #3

Open
kai1083 opened this issue Jan 9, 2015 · 1 comment
Open

api url is not working #3

kai1083 opened this issue Jan 9, 2015 · 1 comment

Comments

@kai1083
Copy link

kai1083 commented Jan 9, 2015

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

@shabeer-ali
Copy link

shabeer-ali commented Nov 7, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants