refinery / refinerycms-news

News Plugin for Refinery CMS
http://www.refinerycms.com
MIT License
121 stars 120 forks source link

If a News Expires, The Archive link is broken! #154

Open oshovah opened 10 years ago

oshovah commented 10 years ago

Hi If a News-Article is expired, the link in the archive leads to a "page not found" error. Because this News dont exist anymore but will be listed in the Archive links.

So this <%= news_item_archive_links %> sould either ignore News that are expired or have a working link.

Is there a workaround?

Regards Dino

EDIT: This is the Error that shows up, if you hit "Show this News live" on the news backend module:

ActiveRecord::RecordNotFound in Refinery::News::ItemsController#show
parndt commented 8 years ago

Sounds like we need to update the archive to not show expired news