I'm having a slight problem, Wordpress.com doesn't play nice with bitcoin: URLs (it mangles them into http://{current page url}/{wallet address} ), so I need to do a redirect of some sort.

I found Adding «Donate» Bitcoin button in README.MD file GitHub repository on bitcoin.stackexchange.com but I can't get the redirect to work for some reason. I'm using the following code in the index.html file on my other web server, then used the URL to that page as the link for the donate button.

window.location.href = "bitcoin:17uctxtsWG3gpyAy6iJ8AVd5rdSjkJH2?label=In%20the%20treatment%20of%20Sasha's%20teeth&amount=0.0037";

It seems to work (in the sense that it redirects the user back to the page where they came from) but it doesn't open a bitcoin application on for example my phone.

migrated from bitcoin.stackexchange.com Feb 23 at 1:58

This question came from our site for Bitcoin crypto-currency enthusiasts.

  • Also consider, you could just add a QR payment code to your donate section until you figure it out. – Willtech Feb 22 at 11:33
  • I already have a QR code as well. – Stuggi Feb 22 at 13:08

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.