I have a href link to a pdf file that when clicked on it downloads. I want this to just open in a new page instead of downloading.
Your server should return this http header:
Content-Type: application/pdf
For viewing in browser it should also return:
Content-Disposition: inline;filename="myfile.pdf"
For downloading:
Content-Disposition: attachment;filename="myfile.pdf"