This code was a quick solution for the "Send to Backpack" button both opening a new tab and redirecting to the share page, but I just noticed that it doesn't work! In Safari, it's not redirecting. I'll have to fix this.