#AskNostr #devs What is the current best practice for html webpage links to Nostr profiles? I have multiple businesses and projects that I wish to drive site visitors to Nostr. 🫡

Reply to this note

Please Login to reply.

Discussion

Id like to know too. I previously asked this and got no reply so I assumed the obvious. Sign in to the most client appealing app on desktop and get link there. Hit n miss with anti virus software but that may be because no ssl yet. Also url contains public key

Not sure what I expected as an answer but it wasn't what I ended up doing

Currently, I'm doing a sort of double link that looks like "Nostr: npub" with "Nostr" as a link to a page that loads a profile that anyone without an app (or any knowledge of what nostr is) can see the profile in browser. Then next part "npub" is "nostr:npubxxx" for people that know what to do with it. Thus, the entire html looks like: Nostr: npub ..... would be great to hear some devs chime in on this nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 nostr:npub16c0nh3dnadzqpm76uctf5hqhe2lny344zsmpm6feee9p5rdxaa9q586nvr nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s nostr:npub1r0rs5q2gk0e3dk3nlc7gnu378ec6cnlenqp8a3cjhyzu6f8k5sgs4sq9ac nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z

Just put the url in the same way you would do it an text note. Most clients render the about me text in the same way they render each post. So it should work. The fancy ones accept markdown, but not all of them.

No one displays html from the post. It's just a security issue with all the potential JavaScript attacks that come with it.

Errr.... Are we discussing the same thing? This is regarding code in websites - As in, replacing the old links to Twitter, Lamebook, Instascam, etc., with a Nostr profile link.

And also with the consideration that 99% of my www site visitors have no idea what Nostr is.

I think the best way right now is to use njump. It’s basically a link that brings visitors to a landing page and allows them to view your #Nostr profile from their client of choice.

Here’s mine as an example:

https://njump.me/npub15ypxpg429uyjmp0zczuza902chuvvr4pn35wfzv8rx6cej4z8clq6jmpcx