Page 1 of 1

Yagendoo SEF Router

PostPosted: Thu Dec 29, 2011 2:57 pm
by admin
Dear Friends,
it seems that Yagendoo router does not take into consideration any of your dynamic urls needed by various payment gateways. We strongly recommned to disable SEF generation for checkout pages and this can be done in:

/plugins/system/yagendoorouter.php

from line 149 original:
Code: Select all
if($entry) {
            $uri2 = JURI::getInstance(JRoute::_('index.php?'.$uri->getQuery()));
            if($uri->toString(array('path', 'query')) != $uri2->toString(array('path', 'query'))) {
               $uri->setQuery($uri2->getQuery(true));
               $uri->setPath($uri2->getPath());
               $app->redirect($uri->toString(), '', '', true);
            }
         }


change to:
Code: Select all
if($entry) {
            $uri2 = JURI::getInstance(JRoute::_('index.php?'.$uri->getQuery()));
            if($uri->toString(array('path', 'query')) != $uri2->toString(array('path', 'query'))) {
               $uri->setQuery($uri2->getQuery(true));
               $uri->setPath($uri2->getPath());
               if (isset($query['page']) && (strpos($query['page'], 'checkout')!==false)) $entry=false;
               if ($entry)
               $app->redirect($uri->toString(), '', '', true);
            }
         }


This will disable SEF generation for any checkout URLs. SEF is good for search engines, but might not be the best for site usage in some cases.