owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.38k stars 229 forks source link

Always set `tab` as query param in embed code #2805

Closed sophiamersmann closed 6 months ago

sophiamersmann commented 1 year ago

Description

Expected behaviour

~Don't rely on defaults for query params when constructing an embed code.~

Always specify the tab query param in the URL that is included in the embed code.

Screenshots

Screenshot 2023-10-19 at 14 53 58
danyx23 commented 1 year ago

I think the strong version that you describe above is not actually desirable - most of the time we do want embeds to follow along with changed defaults. The shown tab is a special case though, so I think I'm in favour of the small version of just putting the tab in the embed code always

armughan11 commented 7 months ago

Hi @sophiamersmann / @larsyencken is this still available? Happy to work on this!

sophiamersmann commented 7 months ago

Hey @armughan11, sure, you're welcome to work on this.

armughan11 commented 7 months ago

Thanks, will be creating a PR soon :)