circuitpython-org icon indicating copy to clipboard operation
circuitpython-org copied to clipboard

Make /board alias or redirect to /downloads ?

Open dglaude opened this issue 2 years ago • 2 comments

Should https://circuitpython.org/board be "an alias of" / "a redirect to" https://circuitpython.org/downloads ?

The idea is that when you are on a board and you want to check other board, you can shortcut the URI to do that

https://circuitpython.org/board/raspberry_pi_pico_w/ => https://circuitpython.org/board/ or https://circuitpython.org/board

(maybe I am the only one doing/trying that...)

dglaude avatar Nov 13 '22 10:11 dglaude

If we do this, I'd prefer to also redirect /board/board-name to /boards/board-name. The redirect to all the boards would then go from /downloads to /boards. This would make more sense if we ever created a circuitpython.org json REST api as well. https://circuitpython.org/boards/raspberry_pi_pico_w.json, etc.

In hindsight, this what the endpoints probably should have been when the site was first built, but we went with a more traditional /downloads endpoint that kind of stuck.

If we do this though, it brings along maintenance considerations as we will always have to maintain these redirects. In the case of /board -> /boards, as well as /board -> /downloads.

I'm not entirely convinced it's worth that cost yet (I haven't looked into how it's done in jekyll/github pages either).

jwcooper avatar Nov 14 '22 15:11 jwcooper

Jekyll has a plugin: https://github.com/jekyll/jekyll-redirect-from

https://stackoverflow.com/questions/9276817/301-redirect-for-site-hosted-at-github, one of many discussions on this

dhalbert avatar Nov 14 '22 15:11 dhalbert