Skip to content
361: Forks in a New Tab episode artwork

Mar 31, 2022

361: Forks in a New Tab

from CodePen Radio Hosted by CodePen Blog

If you Command (Mac) or Control (PC) click the Fork button, it will open the newly forked Pen in a new tab in your browser. That's new behavior. Before, it would open the fork in the same tab, no matter how you click. That was unfortunate, as Cassie called out: Why didn't it work like this before? Well, that's what Shaw and I get into in this podcast. It's a smidge complicated. The root of it is that that Fork button isn't a hyperlink. It's a button handled by JavaScript because of the nature of how it works (a fork might have data that only the client knows about: unsaved code changes). But Shaw found a way to make it work anyway, by essentially passing the metaKey information through all the forking process until that moment we had an opportunity to open that new tab. Time Jumps Sponsor: Notion Notion is an incredible organizational tool. Individuals can get a ton out of it, but I find the most benefit in making it a home base for teams. It can replace so many separate tools (documents, meeting notes, todos, kanbans, calendars, etc) that it really becomes the hub of doing work, and everything stays far more organized than disparate tools ever could.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

361: Forks in a New Tab

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

When was this CodePen Radio episode published?

This episode was published on March 31, 2022.

Can I download this CodePen Radio episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.