Page MenuHomeFreeBSD

website/press: Adjust all links
ClosedPublic

Authored by dbaio on Jul 15 2021, 11:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 12 2024, 4:44 AM
Unknown Object (File)
Nov 1 2023, 11:09 AM
Unknown Object (File)
Jul 31 2023, 12:25 AM
Unknown Object (File)
Jun 4 2023, 6:41 PM
Subscribers
None

Details

Summary
  • Fix RSS/Feed links

    They were without the anchor part, causing 404 requests: https://www.freebsd.org/press/2021-03:0 The correct is: https://www.freebsd.org/press/#2021-03:0
  • Make links unique

    When investigating the above issue, we could note that the links were not unique. Every time a new press item is added, the entire chain of links is changed.

    We add the old behavior with this change, which counts press items for each month and generates the unique link based on the month and in the month counter.

    This change also needs to be added to the News and Events items.
Test Plan
$ grep "press/#" public/index.html
  <a href="/press/#2021-03:1">License to thrill</a>
  <a href="/press/#2020-02:1">Discussing Past, Present and Future of FreeBSD Project</a>
  <a href="/press/#2020-02:2">Supporting an open source operating system: a Q&amp;A with the FreeBSD Foundation</a>
  <a href="/press/#2019-08:1">Meet FreeBSD Project – A Journey of 26 Years and Beyond</a>
  <a href="/press/#2019-06:1">FreeBSD Turns 26</a>
$ grep guid public/press/feed.xml
  <guid>https://www.freebsd.org/press/#2021-03:1</guid>
  <guid>https://www.freebsd.org/press/#2020-02:1</guid>
  <guid>https://www.freebsd.org/press/#2020-02:2</guid>
  <guid>https://www.freebsd.org/press/#2019-08:1</guid>
  <guid>https://www.freebsd.org/press/#2019-06:1</guid>
  <guid>https://www.freebsd.org/press/#2019-06:2</guid>
  <guid>https://www.freebsd.org/press/#2019-06:3</guid>
  <guid>https://www.freebsd.org/press/#2019-04:1</guid>
  <guid>https://www.freebsd.org/press/#2017-11:1</guid>
  <guid>https://www.freebsd.org/press/#2016-06:1</guid>
$ grep "a id=" public/press/index.html
  <a id="2021-03:1"></a>
  <a id="2020-02:1"></a>
  <a id="2020-02:2"></a>
  <a id="2019-08:1"></a>
  <a id="2019-06:1"></a>
  <a id="2019-06:2"></a>
  <a id="2019-06:3"></a>
  <a id="2019-04:1"></a>
  <a id="2017-11:1"></a>
  <a id="2016-06:1"></a>
  <a id="2016-06:2"></a>
  <a id="2015-10:1"></a>
  <a id="2015-07:1"></a>
  <a id="2015-03:1"></a>
  <a id="2015-01:1"></a>
  <a id="2014-12:1"></a>
  <a id="2014-11:1"></a>
  <a id="2014-10:1"></a>
  <a id="2014-09:1"></a>
  <a id="2014-09:2"></a>
  <a id="2014-01:1"></a>
  <a id="2014-01:2"></a>
  <a id="2013-06:1"></a>
  <a id="2013-02:1"></a>
  <a id="2013-01:1"></a>
  <a id="2012-11:1"></a>
  <a id="2012-08:1"></a>
  <a id="2012-06:1"></a>
  <a id="2012-06:2"></a>
  <a id="2012-05:1"></a>
  <a id="2012-05:2"></a>
  <a id="2012-05:3"></a>
  <a id="2012-05:4"></a>
  <a id="2012-05:5"></a>
  <a id="2012-04:1"></a>
  <a id="2012-03:1"></a>
  <a id="2012-02:1"></a>
  <a id="2012-01:1"></a>
  <a id="2011-11:1"></a>
  <a id="2011-09:1"></a>
  <a id="2011-07:1"></a>
  <a id="2011-03:1"></a>
  <a id="2011-02:1"></a>
  <a id="2010-08:1"></a>
  <a id="2010-02:1"></a>

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dbaio created this revision.

Really good catch!!
Approved!

This revision is now accepted and ready to land.Jul 15 2021, 2:56 PM
This revision was automatically updated to reflect the committed changes.