Project

General

Profile

Actions

GX-Bug #68252

closed

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

Added by Till Tepelmann about 5 years ago. Updated over 4 years ago.

Status:
Erledigt
Priority:
Normal
Assignee:
Alexandre Ataides
Category:
GXModules
Target version:
% Done:

0%

Estimated time:
Steps to reproduce:
Betroffene Versionen:
4.3.3.0
Release Notes Langtext:

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


Description

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.


Actions #1

Updated by Till Tepelmann about 5 years ago

  • Tags set to MR
  • Release Notes Langtext updated (diff)
Actions #2

Updated by Till Tepelmann about 5 years ago

  • Status changed from Gemeldet to 30
  • Assignee set to Core-Entwickler
  • Target version changed from 133 to 4.4.0.0 beta1
Actions #3

Updated by Marvin Muxfeld about 5 years ago

  • Assignee changed from Core-Entwickler to Marvin Muxfeld
Actions #4

Updated by Marvin Muxfeld about 5 years ago

  • Status changed from 30 to Testing
  • Assignee changed from Marvin Muxfeld to Core-Entwickler
Actions #5

Updated by Till Tepelmann about 5 years ago

  • Description updated (diff)
Actions #6

Updated by Daniel Wu about 5 years ago

  • Tags changed from MR to MR, 4.3.3.1
  • Target version changed from 4.4.0.0 beta1 to 4.3.3.1
Actions #7

Updated by Alexandre Ataides about 5 years ago

  • Assignee changed from Core-Entwickler to Alexandre Ataides
Actions #8

Updated by Alexandre Ataides about 5 years ago

  • Status changed from Testing to Erledigt
Actions #9

Updated by Moritz Bunjes over 4 years ago

  • Tags changed from MR, 4.3.3.1 to MR
Actions #10

Updated by Moritz Bunjes over 4 years ago

  • Tags deleted (MR)
Actions

Also available in: Atom PDF