-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Structured Data Error using Geographic coordinates #326
Comments
I get an error from the Google Search Console : "Missing ‘}’ or object member name". Only when I use geographic coordinates. |
What browser are you using, and what is the locale? I'm guessing the browser might be transforming this value. |
Yes, french locale. Would it be possible to restrict the field format to dot decimal notation? |
I'm using Wagtailtrans. The problem only concern the french page. It seems that regardless the browser's locale, the value entrered with decimal point is somehow converted to decimal comma. |
Would you be able to test this out on a plain wagtail project with wagtailtrans, and see if the issue persists without coderedcms? An example model that should trigger the issue: from django.db import models
from wagtail.core.models import Page
from wagtail.admin.edit_handlers import FieldPanel, MultiFieldPanel
class TestPage(Page):
decimal_field = models.DecimalField(
blank=True,
null=True,
max_digits=10,
decimal_places=8,
verbose_name=_('Decimal Field')
)
content_panels = Page.content_panels + [
MultiFieldPanel([
FieldPanel('decimal_field'),
])
] |
Describe the bug
There seems to be a problem with Json output using coordinates. The coordinates are added to the structured data, but I think that the comma breaks the JSON output.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
When I enter coordinate like 15.43929432, it is saved as 15,43929432. Shouldn't it keep a decimal format using "." ?
The text was updated successfully, but these errors were encountered: