Are there any working links to Swift evolution proposal docs that use just the XXXX or SE-XXXX code without any postfix?
For example, the SE github repo has a file as follows:
https://github.com/apple/swift-evolution/blob/main/proposals/0406-async-stream-backpressure.md
But what I need is a way to link to it using just the code, since I have information tagged by SE code. So I'd like some URL template I can just insert 0406
into and have a working link (I guess it would redirect to full URL above).
Does anything like this exist?
(I can't find any category that seems to exactly fit this question so this place seems best, apologies if it's the wrong place)
1 Like
tevelee
(Laszlo Teveli)
August 19, 2023, 6:57pm
2
Maybe https://www.swift.org/swift-evolution/#?proposal=SE-0406
Thanks! That takes me to a page where I have to click a link to get to the actual details. Any idea if there's a way to directly link please?
For now I've just made a quick solution for myself by putting a redirect into a page on github pages, like so:
https://alexhunsley.github.io?se=0001
1 Like
Thanks for bringing this up @alexhunsley . I’ve submitted an issue to the swift.org repository with this request.
Please feel free to comment in the issue with any additional feedback or requirements.
opened 03:40PM - 23 Aug 23 UTC
enhancement
A request came up in the forums for a way to link to swift evolution proposals t… hat uses only the proposal identifier and not the full title slug that is used in the GitHub repository:
https://forums.swift.org/t/se-code-only-links-to-swift-evolution-proposal-files/66843
@xwu reached out from the language steering group to see if it would be possible to add redirects on swift.org that would do this.
For example, to reach the URL:
https://github.com/apple/swift-evolution/blob/main/proposals/0406-async-stream-backpressure.md
which requires knowledge of the exact title slug `0406-async-stream-backpressure` of the proposal filename,
a redirect would be hosted by swift.org, something like:
https://swift.org/proposals/0406.html
or
https://swift.org/proposals/SE-0406.html
which would redirect to the proposal on GitHub
Adding this would allow easier construction or automation of URLs to proposals.
1 Like