Ticket #754 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Changset 1036 breaks permalink link generation

Reported by: anonymous Assigned to: tobi
Priority: normal Milestone:
Component: frontend Version:
Severity: normal Keywords:
Cc:

Description

In r1036 and up to r1039 the link generation of permalinks is somehow broken. There is e.g. an url http://domain/admin/articles/permalink?year=2006&title=test&day=03&month=05 which should be http://domain/articles/2006/05/03/test on the link "View article on your blog"

Change History

05/03/06 15:55:59 changed by anonymous

This should fix it ...

--- ./app/models/blog.rb.1039   2006-05-03 15:46:57.000000000 +0200
+++ ./app/models/blog.rb        2006-05-03 15:49:12.000000000 +0200
@@ -144,7 +144,8 @@
   end

   def article_url(article, only_path = true, anchor = nil)
-    url_for(:year => article.created_at.year,
+    url_for(:controller=>"/articles", :action =>"permalink",
+            :year => article.created_at.year,
             :month => sprintf("%.2d", article.created_at.month),
             :day => sprintf("%.2d", article.created_at.day),
             :title => article.permalink, :anchor => anchor,

07/15/06 18:27:27 changed by sprewell

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1040].