LucianoGanga / simple-headless-chrome

Simple abstraction to use Chrome as a Headless Browser with Node JS
MIT License
217 stars 50 forks source link

A link containing hash "#", is not rendering correctly in printToPDF #96

Open khatekar opened 5 years ago

khatekar commented 5 years ago

I am using a 'simple-headless-chrome' package of version 4.3.10. A link containing hash "#", is not rendering correctly in "printToPDF". Is there any way to make it work.

For example, a webpage, www.fruitsexample.com has a list of all fruits and there is a link next to each fruit to see the details of each. The link contains hash '#' tag in it; i.e., "< a href="www.fruits.com/fruits#apple" >View< /a >", the link didn't appear in the PDF. it was only showing text "View", not a link to it. If I hard coded the link and removed the hash '#' part, it's appeared in the PDF.

How can I make it work? Thanks in advance.

khatekar commented 5 years ago

@LucianoGanga, Can you help?