No Code Attached Yet
avatar Hans-63
Hans-63
13 Nov 2021

URLs in embedded google maps does not work in J4

The insertion of a google map in the website works the same as in Joomla3, however urls that are included in a marker will open the desired page in J3 neatly, but in J4 this results in an error message from google.
Example in J3: https://www.htm63.com/joomla3/in-english/our-properties-on-the-map
Example in J4: https://www.htm63.com/index.php/in-english/our-properties-on-the-map

The actual code is with copy/paste copied from J3 to J4... Used code :

<p><iframe src="https://www.google.com/maps/d/u/0/embed?mid=1QTZ6vr8usIwVnv5tbQgW1veaokxw_80c" width="937" height="937"></iframe></p>

What to do to get this working as simple as possible!

Thanks in advance.

Hans

avatar Hans-63 Hans-63 - open - 13 Nov 2021
avatar Hans-63 Hans-63 - change - 13 Nov 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 13 Nov 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Nov 2021
avatar Hans-63 Hans-63 - change - 13 Nov 2021
The description was changed
avatar Hans-63 Hans-63 - edited - 13 Nov 2021
avatar Hans-63 Hans-63 - change - 13 Nov 2021
The description was changed
avatar Hans-63 Hans-63 - edited - 13 Nov 2021
avatar Knight1354
Knight1354 - comment - 13 Nov 2021

Hey there,
I studied the issue but I found nothing unusual in the anchor tag. To solve the problem we should use the onclick function on
anchor tag.

avatar HLeithner HLeithner - change - 13 Nov 2021
The description was changed
avatar HLeithner HLeithner - edited - 13 Nov 2021
avatar HLeithner
HLeithner - comment - 13 Nov 2021

@Hans-63 can you please try to disable the "System - HTTP Header" plugin. I don't think that's this is the reason but I see not much difference that can effect the google script in the iframe.

Google attaches 3 on click event handlers and one of them causes this error.

avatar Hans-63 Hans-63 - change - 14 Nov 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-11-14 11:31:57
Closed_By Hans-63
avatar Hans-63 Hans-63 - close - 14 Nov 2021
avatar Hans-63
Hans-63 - comment - 14 Nov 2021

@HLeithner : Great!! thanks a lot for this tip.... After disabeling the plugin it works as wanted.

Add a Comment

Login with GitHub to post a comment