Wrong links in emails

bemeto20177 years ago

Hi!
I have an issue with the emails reporting geo fence or speed limit, when i clik the link with the position the URL redirect its this type 127.0.1.1:8082/?eventId=1555 no open the position in google maps

I use Traccar 3.11 + Customize maps google

Anton Tananaev7 years ago

You can specify base URL using "web.url" config parameter.

bemeto20177 years ago

I dont find web.url parameter in default.xml and traccar.xml

dont appears in https://www.traccar.org/configuration-file/

You know what base URL need specify for get a positions in google map?

Thanks.

Anton Tananaev7 years ago

If you want to use Google Maps, you would have to modify notification template in "templates" folder. If you just want to point to your own instance of Traccar you have to add "web.url" parameter to the config file.

psekinho7 years ago

I have my server on a VPS. When i get an email, i get http://172.31.1.100:8082/?eventId=178 as point.
My public address is different than this though. Template has weburl parameter.
Is there somewhere else a config parameter so i can enter my actual ip?

Anton Tananaev7 years ago

Have you actually read this thread before commenting?

psekinho7 years ago

Yes, and my question is when you say "add "web.url" parameter to the config file" you mean adding something like
<entry key='web.url'>XX.XX.XX.XX</entry> on traccar.xml for example?

Anton Tananaev7 years ago

Yes, but make sure you put a valid URL, not just IP address.

psekinho7 years ago

You mean <entry key='web.url'>http://vpsip:8082</entry>?

Anton Tananaev7 years ago

Yes, something like that.

psekinho7 years ago

Yep, did it exaclty like this and is showing as it should.

gustavofarias2 years ago

As a suggestion, I would put a line like
"If you need to change the base URL in notifications, change web.url param"
In the very end of this page: https://www.traccar.org/notifications/

Because it's when you are trying to change templates for notifications that you see $webUrl and want to change it but doesn't know how to change it.
Would save people a lot of time. Just see how many questions like this are there.

Anton Tananaev2 years ago

Added to the first section:

https://www.traccar.org/notifications/