Support Google shared resources, not only public ones.

Created on 23 September 2021, over 3 years ago
Updated 25 May 2023, almost 2 years ago

Currently, this module's remote media format: Google only allows for published resources, with links ending with 'pub'.
The problem with this is that Google will always index that content.
"Only documents that have been explicitly published by selecting the 'Publish as web page' or 'Publish/embed' option and are linked from a public accessible website will be indexed by Google Search"

The alternative is for people to create a shared link, choosing "Anyone on the internet with this link can view". This option does not result in indexing, especially for sites or groups that only allow members to have access to pages containing that remote resource link.

There is no reason why this module Media Remote could not support this, because manually such iframe with a shared content link can already be achieved in the following way:

To embed a google doc in a page, use this code as the html source of the text field, replacing the link with the google doc URL and replacing /edit with /preview like this:

<p><iframe height="800" src="https://docs.google.com/document/d/DOCUMENTIDHERE/preview" title="Iframe Example" width="600"></iframe></p>

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Yuri

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jerrac

    Any idea how to implement this ?

    I tried just making the "/e" optional in MediaRemoteGoogleFormatter.php line 29. If I have Firefox Enhanced Tracking Protection on, Google shows a message about needing cookie access. It works if I turn off enhanced protection.

    return '/^https:\/\/docs\.google\.com\/(document|spreadsheets|presentation)\/d\/?e?\//';
    

    Is there a better way?

Production build 0.71.5 2024