Change link unfurling image used by Notion

Whenever you post a link to Notion into Slack etc, the image that unfurls is always this: Notion default image for link unfurling

Is it possible to change the image used in Notion for link unfurling? Ideally it would either be the image selected for the page cover, or the first image in the page.

Tech stuff – in the Notion html head, this is what needs to change <meta property="og:image" content="https://www.notion.so/images/meta/default.png">.

Go to Source
Author: conradj

How to enable HTML tags in category description without breaking the category page

I’m trying to include hyperlinks as part of the description on a category page.

Since WordPress strips the necessary HTML tags, I’ve added the following PHP code in a plugin, which stops the HTML tags from getting stripped:

add_action('init','disable_kses');

function disable_kses() {
    remove_filter('pre_term_description', 'wp_filter_kses');
    }

This lets me include HTML tags fine, but when I include a hyperlink in the description, it breaks the page in a weird way, with material from the description being reproduced above the header. This includes all the text from the first hyperlink until the end of the description, but the first link itself isn’t reproduced (only the text for it is). In addition, at the very end of the material, the following is appended to the text:

“>

Other than that, in the place where the description should appear (under the title), everything renders properly, including the hyperlinks.

The HTML that I use to include the hyperlinks is standard:

<a href="http://example.org/">example</a>

My question is what should I be doing differently in order to be able to include hyperlinks as part of the category page description?

Go to Source
Author: Thredolsen

SEO friendly way to link to authority identifiers from a page, without installing extensions?

I am looking for SEO-friendly ways to add authority identifiers to pages or categories so that SEO finds them easily, with without installing the Wikibase or Semantic MediaWiki or other extensions (would prefer not to go into why).

Example:
A page about a person may have many identifiers, e.g.:

  • LOC number (library of Congress)
  • Worldcat identifier
  • Biography database identifiers Who’s
  • Who identifier
  • BNF identifier
  • Wikidata website identifer

Most of these authority identifiers will be links but not all.

On Wikipedia these extensions are shown either in the infobox template at the top, or in the authority control template in the footer, both of which are linked to the relevant wikidata pages using the Wikibase extension.

SEO:
Authority identifiers are used by search engines to identify which content it is from other pages with the same name which may not be relevant, and many people have the same names. They can also link the page with other relevant content.

So what is the SEO-friendly way to include authority identifiers for SEO without installing extensions? I plan to use a template but plain links in a template in the footer seem unlikely to be crawled as effectively and I don’t want the Google snippet to be be full of identifiers from a template.

Go to Source
Author: Mousey

How do I link to a specific gmail search, google document etc on the correct google apps domain?

I want to provide links to specific GMail folders, GMail messages, Google Drive items etc on a company webpage.

Users may have multiple Google accounts and it is not guaranteed that their primary / default account is the company account.

You’d expect this to be trivial and well documented, but … not so much. Google multi-account support uses URLs with /u/2 (or similar) to differentiate users by login ordinal position in the current session. These links break if the user logs out of an account then back in and they cannot be shared correctly between users.

Google accounts have the seemingly undocumented feature of supporting /u?authuser=me@domain.com links which work but require a fully qualified user account. I could not find any documentation on it, nor any listing of supported paramters, and my guesses did not turn up any obvious “authdomain” type links that’d pick the currently logged in user matching the domain-part.

The redirect mechanism used by Google for subdomains does not appear to work for gmail links. You can’t take a link to https://mail.google.com/mail/u/1/#search/rfc822msgid%xxxxx%40mydomain.com and massage it into https://mail.mydomain.com/mail/u/#search/rfc822msgid%xxxxx%40mydomain.com or variants I tried with /u? etc. You’ll get an error like

Secure Connection Failed

An error occurred during a connection to mail.mydomain.com. PR_END_OF_FILE_ERROR

(Firefox)

This site can’t be reached

mail.mydomain.com unexpectedly closed the connection.

(Chrome)

So all in all, it’s ghastly. Not to mention that GMail searches to specific messages or threads are already painful; you have to “view source” because you can’t customise the headers shown, then hand-concoct a rfc822msgid:THE_MSGID_HERE msgid search.

Am I missing some simple sane way to just send a link that’ll take the recipient to a specific label, mailbox, message ID, search, etc?

Go to Source
Author: Craig Ringer