From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | PostgreSQL WWW <pgsql-www(at)lists(dot)postgresql(dot)org> |
Subject: | Slugifying news and events urls |
Date: | 2018-10-11 10:12:54 |
Message-ID: | CABUevEzn2nF7fL=tdjQX8j9bkFb=5MjPY8oz3WxfXXa4bpBiVw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-www |
PFA two patches that do this.
AFAIK that gives for better SEO as well, but in general it just makes
things look nicer :)
We already had support for the <id>-<slug>/ format URLs, but we never
generated them. But for things to look nicer, this patch instead uses
<slug>-<id>/.
Old URLs still work, and if the title (and thus slug) is changed it will
redirect to the new location, to maximize future caching for it.
For news, it adds the slugified url to the admin list, primarily to make it
easier for the person who's doing a "web release" to be able to copy/paste
the actual complete URL instead of having to rely on trying to figure out
what slugify does.
Thoughts? And for those who actually know Web Stuff (TM), is it correct
that this should also help with SEO stuff?
--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>
Attachment | Content-Type | Size |
---|---|---|
0002-Slugify-event-URLs.patch | text/x-patch | 5.0 KB |
0001-Slugify-news-URLs.patch | text/x-patch | 10.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Jonathan S. Katz | 2018-10-11 13:51:09 | Re: Retiring legacyurls |
Previous Message | Dave Page | 2018-10-11 09:56:28 | Re: Retiring legacyurls |