Projekt

Allgemein

Profil

GX-Bug #68252

Von Till Tepelmann vor etwa 3 Jahren aktualisiert

JavaScripte die über GXModules eingebunden werden, werden nicht mehr ausgeführt weil beim Aufruf der gm_javascript.js.php eine Umleitung auf die entsprechende Kategorie stattfindet statt die JavaScripte zu laden. 

 Kann wie folgt reprozuiert werden: 

 1. Erstelle eine Datei    GXModules/Hersteller/Modul/Shop/Themes/All/Javascript/ProductInfo/script.js 
 2. Füge den Inhalt "alert('test')" in die Datei ein. 
 3. öffne Gambio Admin unter "Inhalt->Template Einstellungen" wähle ein Theme "Malibu" oder "Honeygrid" 
 4. öffne "Einstellungen->SEO" 
 5. aktiviere Suchmaschinenfreundliche URLs Pro für Artikeldetailseiten 
 6. aktiviere Suchmaschinenfreundliche URLs Pro für Kategorieseiten 
 7. öffne "Toolbox-Cache" und leere den Modul-Cache und den Seiten-Cache 
 8. 5. öffne den Shop im Front und öffne eine Artikeldetailseite 

 Erwartetes Ergebnis: 
 Das JavaScript wird ausgeführt und die Meldung "test" sollte auf dem Bildschirm erscheinen 

 Tatsächliches Ergebnis: 
 Es wird das JavaScript nicht ausgeführt und die Meldung erscheint nicht auf dem Bildschirm. Die gm_javascript.js.php wird umgeleitet mit 301 auf die im cPath angegenen SEO BOOST Kategorie. 

 ----- 

 JavaScripts that are included via GXModules are no longer executed because when calling gm_javascript.js.php a redirection to the corresponding category takes place instead of loading the JavaScripts. 

 This can be reproduced as follows: 

 1. create a file GXModules/Vendor/Module/Shop/Themes/All/Javascript/ProductInfo/script.js 
 2. add the content "alert('test')" to the file. 
 3. open Gambio Admin under "Content->Template Settings" choose a theme "Malibu" or "Honeygrid 
 4. open "Settings->SEO 
 5. activate Search Engine Friendly URLs Pro for product detail pages 
 6. activate Search Engine Friendly URLs Pro for category pages 
 7. open "Toolbox-Cache" "Toolbox Cache" and empty the module cache and the page cache 
 8. 5. open the store in the front and open a product detail page 

 Expected result: 
 The JavaScript will be executed and the message "test" should appear on the screen 

 Actual result: 
 The JavaScript is not executed and the message does not appear on the screen. The gm_javascript.js.php is redirected with 301 to the SEO BOOST category specified in the cPath. 

Zurück