slatedocs / slate

Beautiful static documentation for your API
https://slatedocs.github.io/slate
Apache License 2.0
36.01k stars 106 forks source link

Handle incorrectly set language parameter #1756

Closed realityking closed 7 months ago

realityking commented 1 year ago

If the query parameter was set to a language not actually present in the document, no language was selected.

realityking commented 1 year ago

Originally this PR had an additional commit to always generate URLs using language=. I realised this is actually not a bug but that slate is written in a way that both ?ruby and ?language=ruby are supported. IMHO that's a rather odd decision but since it's not a bug I've removed the commit from this PR.