Projekt

Allgemein

Profil

Aktionen

GX-Bug #68252

geschlossen

JavaScripte von Drittanbieter Modulen werden nicht ausgeführt / JavaScripts from third-party modules are not executed

Von Till Tepelmann vor mehr als 3 Jahren hinzugefügt. Vor fast 3 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Alexandre Ataides
Kategorie:
GXModules
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.3.3.0
Release Notes Langtext:

JavaScripte von Drittanbieter Modulen werden wieder zuverlässig ausgeführt


Beschreibung

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. ö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" and empty the module cache and the page cache
  8. 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.


Aktionen

Auch abrufbar als: Atom PDF