zooniverse / front-end-monorepo

A rebuild of the front-end for zooniverse.org
https://www.zooniverse.org
Apache License 2.0
104 stars 30 forks source link

Project Facebook and Instagram links hijack the current tab in Firefox #2591

Open eatyourgreens opened 2 years ago

eatyourgreens commented 2 years ago

Package

app-project (ConnectWithProject) lib-react-components (ZooFooter)

Describe the bug

  1. Visit a project home page in Firefox, eg. https://www.zooniverse.org/projects/nora-dot-eisner/planet-hunters-tess
  2. Click on either the Facebook link in the 'Connect with…' box, or the Facebook/Instagram links in the page footer.
  3. The new page hijacks the open tab and replaces the window location, so that you can't go back to the project home page.

NB. the Twitter and Wordpress links work as expected, and all social media links work as expected in Chrome.

Expected behavior

The new page should be pushed to the browser history, so that I can go back to the previous page.

Device information

Desktop (please complete the following information):

eatyourgreens commented 2 years ago

Given that this only happens in Firefox, for domains owned by Facebook, I'm wondering if it's caused by Facebook containers in Firefox.