Skip to content

Commit

Permalink
fix "latest" feed for categories by using the category slug ("Permali…
Browse files Browse the repository at this point in the history
…nk") instead of the category's name (reported by Ian Nalepa)
  • Loading branch information
FelixSchwarz committed Aug 7, 2012
1 parent c57de5a commit f857989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mediacore/templates/categories/index.html
Expand Up @@ -19,7 +19,7 @@
<link href="${h.url_for('/styles/categories.css')}" media="screen" rel="stylesheet" type="text/css" />
<link py:if="c.category"
rel="alternate" type="application/rss+xml" title="${_('Latest media in %s') % c.category.name}"
href="${h.url_for(controller='/categories', action='feed', slug=c.category.name)}" />
href="${h.url_for(controller='/categories', action='feed', slug=c.category.slug)}" />
</head>
<body>
<div py:if="latest" id="category-latest" class="${popular and 's-grid-column' or None}" py:with="latest_url = c.category and h.url_for(action='more', order='latest') or h.url_for(controller='/media', show='latest')">
Expand Down
2 changes: 1 addition & 1 deletion mediacore/templates/categories/more.html
Expand Up @@ -15,7 +15,7 @@
<link href="${h.url_for('/styles/categories.css')}" media="screen" rel="stylesheet" type="text/css" />
<link py:if="c.category and settings['rss_display'] == 'True'"
rel="alternate" type="application/rss+xml" title="${_('Latest media in %s') % c.category.name}"
href="${h.url_for(controller='/categories', action='feed', slug=c.category.name)}" />
href="${h.url_for(controller='/categories', action='feed', slug=c.category.slug)}" />
</head>
<body>
<h2><span class="uppercase mcore-heading">${order == 'latest' and _('Latest') or _('Most Popular')}</span></h2>
Expand Down

0 comments on commit f857989

Please sign in to comment.