Skip to main content

Use more real links or at least query params

One of my main issues with the site is how many “links” are not real links but a javascript click listener that changes the state of the page with no URL or query param change. This means that you can not middle click to open a page in a new tab, which is a big annoyance, and it also completely breaks forward and back navigation. It’s generally considered bad practice to mutate the state like this unless you’re creating an app with it’s own state handling.

You can see this “link” is just a button, thus making it impossible for me to open multiple targets at once. Instead of clicking on “M38” and the page mutating but keeping the same app.stellardock.net/#/discover url, it should go to something like https://app.stellardock.net/discover?target=m38 (though in your case, M38’s id is 1912 from NGC so it would be ?target=1912)

{"id":1912,"primary_name":"M 38","ra_deg":82.16708333333332,"dec_deg":35.823888888888895,"object_type":"OC","constellation":"Aur","v_mag":6.4,"b_mag":6.69,"surface_brightness":12.59900506019781,"major_axis_arcmin":19.6,"minor_axis_arcmin":19.6,"position_angle":0,"popularity":100,"identifiers":[{"catalog":"Messier","source_id":"38","display":"M 38","is_primary":true},{"catalog":"NGC","source_id":"1912","display":"NGC 1912","is_primary":false}],"window":{"peak_alt_deg":88.08608888888882,"peak_alt_time":"2026-10-19T11:11:40.941Z","transit_time":"2026-10-19T11:11:40.941Z","minutes_visible":185.69451950490475}}

Log in to comment and vote

No comments yet

Be the first to share your thoughts.