Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:alphagov/fco
Browse files Browse the repository at this point in the history
  • Loading branch information
James Weiner committed Nov 9, 2011
2 parents 89fa8cc + 594c410 commit a7badcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -2,7 +2,7 @@ module ApplicationHelper

def news_item_path(news_item)
date = news_item.published_at.to_date
"/news/#{date.year}/#{"%02d" % date.month}/#{"%02d" % date.day}/#{news_item.slug}"
"/travel-advice/news/#{date.year}/#{"%02d" % date.month}/#{"%02d" % date.day}/#{news_item.slug}"
end

def long_format_date(time)
Expand Down

0 comments on commit a7badcb

Please sign in to comment.