Home / GitHub Page

Use page title or H1 when sharing URL to Joplin on Android (and I assume iOS)

#1

I’d like to see the page title or the H1 on the page used as the note title when I share a URL to Joplin.

I normally do this from chrome, but I don’t that matters.

Today you just get URL in both title and body and it lacks a lot in helping me remember why I wanted to save that URL…

If someone wants to point out where to get started on this, I can give it a go and submit a PR.

Thanks!

0 Likes

#2

Normally you should get the page title as note title. Do you have an example of page where this doesn’t work?

Edit: You mean from the Web Clipper or from sharing in mobile?

0 Likes

#3

Sharing from chrome to Joplin. I only see the URL in both title and body.

0 Likes

#4

The mobile sharing functionality is quite limited at this time, this is because of the way android share works, currently if you share from chrome (mobile) all Joplin receives is the url. It is possible to get the name of the sharing page, but it would require the Joplin app to download the page, so the functionality is a long way off.

0 Likes

#5

Can you point me to the cide where the note is created? I’ll have a look. I’ve done a little react-native, but mostly I work in python.

Thanks!

0 Likes

#6

Sure thing! The share side of things is first caught in root.js . You can also look in note.js to see how the note side of things works.

0 Likes

#7

I met a behavior where sometimes there is no title at all, not because of Joplin, but ofthe website
I met that with Jong Toolkit

0 Likes