How can I go about opening a pdf in a new tab when a link is clicked. I need convert the title into a safe string I guess using str::slug but how can I use within the href.
Then the file probably does not exist. As always with this kind of stuff, it doesn’t really make sense to call a method on an object (in this case url()) without prior testing if the object exists at all. So the correct way of doing that would be:
I believe the file does exist though, as you can see in the picture. I’m attempting to do this on a one-page website, do you think maybe it’s something to do with the page hierarchy?