Geolocation without Redirection

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
apay1
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Oct 03, 2022 4:15 pm

Geolocation without Redirection

Post by apay1 » Mon Oct 03, 2022 4:29 pm

Hello everybody,

I recently have written some PHP and HTML scripts to get the latitude and longitude of the user, inserting a redirection in the index.php to call a Java Script in a dedicated HTML script. It works fine but the redirection has ruined the Google natural referencing. Now Google doesn't want indexing my URLs because of that redirection.

So my question is simply this one : is there a way to catch the geographic data from the user web browser without any redirection ? Maybe a system plugin could do this, but I'm not sure, as PHP works in the server and HTML/JavaScritp works in the browser...

If anyone has got an idea, please let me know ! Thank you all. :)

Post Reply

Return to “Extensions for Joomla! 3.x”