Permalink
Browse files

fix link to datatracker

  • Loading branch information...
1 parent 74b4181 commit c7b7ae01a60cf73dd8b744d2c5f81d9eb9c08cf8 @mislav committed May 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 models.rb
View
@@ -55,7 +55,8 @@ def initialize_draft doc_id, href_resolver
end
def external_url
- "http://datatracker.ietf.org/doc/#{id.downcase}/"
+ tracker_id = id =~ /^RFC(\d+)$/ ? ('rfc%d' % $1.to_i) : id.downcase
+ "http://datatracker.ietf.org/doc/#{tracker_id}/"
end
def pretty?

0 comments on commit c7b7ae0

Please sign in to comment.