codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

Make post titles (the h1) links and don't truncate page title #1208

Closed cellio closed 8 months ago

cellio commented 11 months ago

meta:288499

We've gotten this request several times; this is one recent one. People are used to being able to right-click on a title to get its URL or open the page in a new tab. (I don't just mean on SE; many blogs also have this property.) We do have "copy link" under the post, which is also important (and the only way to link an answer), but could we also add the link in the h1 itself?

A related request from the same meta post: in the page <title>, we truncate the text if it's long. If we didn't do this, then apparently some browser extensions for constructing markdown links would work better. Since we don't automatically render page titles when somebody links to another Codidact post, it seems helpful to provide this. I think this is in the same "neighborhood" as the H1 request, but if it should be split off, we can do that.

I'm going to spin off the third request from this meta post into its own issue (https://github.com/codidact/qpixel/issues/1209).