Open a link in a new tab; open subsequent links in the same tab

  • Thread starter Thread starter Bob Brown
  • Start date Start date
B

Bob Brown

I am writing material for university students who have a PDF copy* of the textbook available in the learning management system. Instead of linking to the top of the textbook file, I want to direct students to specific places. I've added destination bookmarks, like chapter0 to the PDF and added, e.g. #chapter0 to the URLs after the file name. This all works like a champ.

However, I don't want to leave students with five or six tabs all open to different places in the textbook. I want the first textbook link to open in a new tab and subsequent links to the textbook in that same tab. I thought I could do that by adding target="textbk" to each link, but both Firefox and Chrome open a new tab each time.

This appears to be caused by rel="noopener" inserted by the learning management system, Desire2Learn Brightspace. A test page generated by me and not by the LMS, and without noopener works as expected. I can edit those out, but fret that the LMS will be "improved" to reinsert them in the name of security at some point. Since I apparently can't get permanently rid of rel="noopener" is there some other way around this?

* There are no copyright problems; I"m the author of the book and also the copyright owner.

Continue reading...
 
Back
Top Bottom