Let say for example I will put google.com link to some text in my pdf, and opens in new tab.
But this simple a href tag doesn't worked!
<a href="www.google.com" target="_blank">Go to google</a>
The above code generates:
file://google.com/
How can I do that when I'm using gem 'wicked_pdf'
Please help!
I'm not familiar with wicked_pdf
, but it looks like your google link is missing the http protocol. You're going to want an absolute url like the following:
<a href="https://www.google.com">Go to google</a>
Try it out and see if that solves the problem