Skip to content

Google Map It Button Link is broken when used a foreign language that uses comma as decimal separator #16202

Closed
@marcusyuri

Description

@marcusyuri

Deployment Type

Self-hosted

NetBox Version

v4.0.2

Python Version

3.10

Steps to Reproduce

  1. Change user language preference to "Portuguese"
  2. Create or edit a site and fill the latitude / longitude with decimal values, separated by COMMA and save
  3. Press the 'map it' button

Expected Behavior

The google maps tab opens with the correct latitude / longitude spotted.

Observed Behavior

The google maps site will apper in a new tab, but with error message "O Google Maps não encontrou xxxx,yyyy".
This appears to be caused by Google Maps expecting the latitude / longitude values to use PERIOD decimal separator, instead of the COMMA separator. Maybe a simple conversion to US locale when generating the Map It button link can solve this.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions