Plugin Author
Franky
(@liedekef)
It is being used to add metadata when “online only”.
Also, if online only, the link of the location will use this link directly.
I don’t see anywhere on the page where the location is used as a source of metadata. Could you please say which metadata tag should be on the page?
Plugin Author
Franky
(@liedekef)
Did you check the page source? Because only there the html metatags are visible, and for the location it is in the json+ld part that is automatically added for google.
OK, I was looking for the wrong strings. What I found is the following:
<script type="application/ld+json">{"@context":"http://www.schema.org","@type":"Event","name":"Event title","url":"https://mysite.com/events/event-title/","description":"Something about the event","startDate":"2020-04-15T10:00","endDate":"2020-04-15T10:45","image":"https://mysite.com/wp-content/my-pictures/some-picture.png","eventAttendanceMode":"https://schema.org/OnlineEventAttendanceMode","location":{"@type":"VirtualLocation","url":""}}</script>
But the last part, where type is set to VirtualLocation, is exactly the same, whether I check “online only” or not. I would image that the value of type should be different if it “online only” is not checked.
Also, shouldn’t one expect to see the URL in the location field “External URL” appear in the metadata (as you see about, the value of “url” is null).
Plugin Author
Franky
(@liedekef)
It is a combination of eventAttendanceMode and the location(s), like google is asking.
The url in the virtuallocation shouldn’t be empty though, that I need to check. Did you enter a url there?
Plugin Author
Franky
(@liedekef)
The update fixes the blank URL in the ld+json metadate. Thank you.