tokyodev-inc / tokyodev-devographics

0 stars 0 forks source link

Use relative anchors #275

Open pwim opened 1 month ago

pwim commented 1 month ago

I don't understand why the section link is something like https://2024.surveys.tokyodev.com/en-US/compensation/current_total_annual_compensation instead of just #current_total_annual_compensation. The current strategy means there's an unnecessary page load when clicking on a section link, and also means I can't use this feature in the results preview (as it links to a subdomain we're not using yet).

SachaG commented 3 weeks ago

Do you mean the anchor links next to the question titles?

Screenshot 2024-10-22 at 10 43 10

That path (https://2024.surveys.tokyodev.com/en-US/compensation/current_total_annual_compensation) has the chart's own specific metadata attached, including image preview, title, etc. as opposed to a relative #foo anchor link, which would only have the metadata for the whole page that the chart is on.