Are partial URLs and fragments allowed in identifiers and url parameters

24 views
Skip to first unread message

Tony McCreath

unread,
Jan 1, 2020, 11:19:27 AM1/1/20
to Semantic Search Marketing
Googles testing tools are being a bit inconsistent on this, and I'm finding it hard to interpret the specifications.

Should these parameters be valid?

<a itemprop="url" href="#anchor">...
<a itemprop="url" href="relative-path">...
<a itemprop="url" href="/root-path">...

<div itemscope itemtype="https://schema.org/Thing" itemid="#thisthing">...

Same goes for Json-LD.

And for other url based properties like image. 

The SDTT sometimes likes them. The Rich Results Tester mostly errors or even ignores them.

Cecily Crout

unread,
Jan 2, 2020, 10:55:48 PM1/2/20
to Tony McCreath, Semantic Search Marketing
Hi Tony,

What are you trying to do? What are you wanting to tell the search engines?

Best regards,

Cecily

~~~~~~~~~~~~~~~~
Cecily Crout - SEO, UX, CRO, Digital Analytics | Digital Psychology
Expert SEO & Digital Consulting | Optimize your online presence. 
Mobile: + 1 (970) 412-1448


--
You received this message because you are subscribed to the Google Groups "Semantic Search Marketing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semantic-search-ma...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semantic-search-marketing/b766d24a-ff96-4d30-aa78-f07a709c8312%40googlegroups.com.

Tony McCreath

unread,
Jan 2, 2020, 11:08:08 PM1/2/20
to Semantic Search Marketing


On Friday, 3 January 2020 14:25:48 UTC+10:30, Cecily Crout wrote:
Hi Tony,

What are you trying to do? What are you wanting to tell the search engines?

Best regards,

Cecily


Primarily for me is that Google understands it, but I'd like to make sure what I mark up follows accepted rules. 

jarnovandriel

unread,
Jan 16, 2020, 7:51:27 AM1/16/20
to Semantic Search Marketing
"<a itemprop="url" href="#anchor">..."

# id's are knowns as 'fragment' identifiers, which let you refer to other entities. In case you only provide #anchor you're referring to an entity on the same page (in the same graph), yet if you provide a full URI (eg, https://example.com/some-page#anchor) you can also refer to urls on another page. Both are recognized by Google.

"<a itemprop="url" href="relative-path">..."

Should work in theory though I've never tested it. Can't even remember the last time I used such urls.

"<a itemprop="url" href="/root-path">..."

Works like a charm as the url gets resolved against the domain url. 

Tony McCreath

unread,
Jan 16, 2020, 7:45:06 PM1/16/20
to Semantic Search Marketing
Thanks Jarno,

That backs up my own belief. I'll try and nag the tool developers.
Reply all
Reply to author
Forward
0 new messages