Evaluate using Absolute URLs in breadcrumb LD+JSON
Context
The following discussion from !46991 (merged) should be addressed:
-
@pslaughter started a discussion: (+2 comments) issue:
Disclaimer: I'm in no way an expert in this area.
I ran the resulting HTML of the project page through Google's Rich Results Test, and it looks like there's an issue with the URL field in our breadcrumb items.
🤔 I'm guessing it wants this to be a full URL with the host and everything. WDYT @fjsanpedro?
-
@fjsanpedro replied:
Exactly @pslaughter! At first, I thought about using absolute but that would require changing all views that include urls in the breadcrumb and also create rubocop cops to force absolute urls. Nevertheless, after reading https://webuniverse.io/relative-urls-in-structured-data/, it seems Google converts the relative into absolute URLs.
-
@pslaughter replied:
Oh interesting...
I noticed in a SO question that it looks like this requirement of absolute URL's could even be a recent or inconsistent thing
🤔 Anyways, I think it's worth pushing this to prod and seeing what happens. If it turns out that we do need absolute URL's we can handle that in a follow-up. I'll create an issue for this now just in case.