View Issue Details

IDProjectCategoryView StatusLast Update
0005209OXID eShop (all versions)4.09. SEO, SEO URLpublic2013-07-17 17:00
ReporterBergfreunde Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.7.5 / 5.0.5 
Fixed in Version4.7.7 / 5.0.7 
Summary0005209: Performance-Problem due to unnecessary redirect with static-urls
DescriptionComponents with functions that return a redirect string aren't looking for a (static)SEO-url.
The URLs are always like "http://demoshop.oxid-esales.com/index.php?cl=...&param1=...&param2 = ...".
If an entry in the SEO table for this URL (index.php?cl=..) exists and the URL is called, the shop will redirect to the SEO-URL (see timeline attached).

This for example will lead to unnecessary redirects during the order process.
 
Example:
- "Index.php cl = payment" under an entry for SEO URL and standard English "payment" Create
- Forwarding order in Step 2 to 3:
 
1 Call: http://demoshop.oxid-esales.com/professional-edition/index.php?cl=payment &
2 Forwarding: http://demoshop.oxid-esales.com/professional-edition/bezahlung
 
This can be solved by changing "core/oxseo.php::_executeNewAction( $sNewAction )"
 
$sUrl = oxRegistry::get("oxUtilsUrl")->processUrl($sUrl);
 
diesen Code einfügen:
if (oxRegistry::getUtils()->seoIsActive()) {
    $iLang = (int) oxRegistry::getLang()->getBaseLanguage();
    if ($sSeoUrl = oxRegistry::get("oxSeoEncoder")->getStaticUrl($sUrl, $iLang)) {
        $sUrl = $sSeoUrl;
    }
}
TagsNo tags attached.
Attached Files
2013-06-19_1418.png (47,355 bytes)   
2013-06-19_1418.png (47,355 bytes)   
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

Bergfreunde

2013-06-19 14:17

reporter   ~0008795

i forgot: this takes 3 sec at step payment and thankyou (see google analytics screenshot attached)

mantas.vaitkunas

2013-07-17 17:00

reporter   ~0008924

Hi, fixed it using your solution. Thanks!