81Views7Replies

Author Options:

PDF Download opens up in wrong browser window Answered

The target window for opening the PDF window is called "_new".  This isn't right - it should be "_blank" to open in a new window.  Using "_new" means that all PDFs opened open up in a browser tab/window called "_new" and so they all open up in the same window and overwrite each other if you open up more than one at the same time.

Available target names are described here:

   http://www.w3schools.com/tags/att_a_target.asp

Should be a quick fix!

Discussions

0
None
StumpChunkman

8 years ago

Okay, should be fixed.  Feel free to test it out again.

0
None
rpbStumpChunkman

Reply 8 years ago

Hmmm.  Still does the same thing for me and still has "_new" as the link target.

Perhaps the changes take some time to filter to the live site?

0
None
kelseymhrpb

Reply 8 years ago

Delete your cache ("recent history" in Firefox). 

Typically, your browser gives you the appearance of being really fast by re-displaying pages it's already loaded.  Since most servers today don't include expiry timestamps when they ship pages, your browser can't know that the cached version has been superseded.

0
None
rpbkelseymh

Reply 8 years ago

Hi, yes, I've tried deleting my cache (in Google Chrome thsi time), although I tested it on new instructables anyway so they shouldn't have been cached, should they, unless the site somehow uses some kind of shared sub-page or something?

For example, if I go to this URL:

   https://www.instructables.com/id/Grow-Your-Own-Cooking-Oil/?download=pdf

and view the source (Ctrl+U in Firefox or Chrome) and search for ".pdf" I find the link to the PDF (on line 191) and that anchor tag has a target of "_new" still instead of "_blank".

There is a link further down that uses _blank, but that seems to be some sort of webbug 1-pixel image to quantcast.com...

0
None
StumpChunkmanrpb

Reply 8 years ago

Apologies, I'm full of bad information today.  It has been fixed in house, however it's not live on the site until the next update.  Sorry for the confusion.

0
None
kelseymhStumpChunkman

Reply 8 years ago

See below.  I just confirmed that the target="_new" attribute is still present, as of 12:48 pm (2-1/2 hours after Matt's comment).

0
None
StumpChunkman

8 years ago

Thanks!  I'm passing the info along.