mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 04:23:01 +08:00
fix a few places we were using /category vs /c
This commit is contained in:
parent
74e8ca2a4f
commit
86c13ada44
|
@ -127,9 +127,9 @@ class ListController < ApplicationController
|
|||
discourse_expires_in 1.minute
|
||||
|
||||
@title = @category.name
|
||||
@link = "#{Discourse.base_url}/category/#{@category.slug_for_url}"
|
||||
@link = "#{Discourse.base_url}/c/#{@category.slug_for_url}"
|
||||
@description = "#{I18n.t('topics_in_category', category: @category.name)} #{@category.description}"
|
||||
@atom_link = "#{Discourse.base_url}/category/#{@category.slug_for_url}.rss"
|
||||
@atom_link = "#{Discourse.base_url}/c/#{@category.slug_for_url}.rss"
|
||||
@topic_list = TopicQuery.new.list_new_in_category(@category)
|
||||
|
||||
render 'list', formats: [:rss]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<% @list.categories.each do |c| %>
|
||||
<div class="category">
|
||||
<h2><a href="/category/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a></h2>
|
||||
<h2><a href="/c/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a></h2>
|
||||
<div class="topic-list">
|
||||
<%- if c.displayable_topics.present? %>
|
||||
<% c.displayable_topics.each do |t| %>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<%= render_topic_title(@topic_view.topic) %>
|
||||
</h2>
|
||||
<% if c = @topic_view.topic.category %>
|
||||
<a href="/category/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a>
|
||||
<a href="/c/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a>
|
||||
<% end %>
|
||||
<hr/>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ desc 'Creates the integration fixtures. Requires a development instance running.
|
|||
task 'integration:create_fixtures' => :environment do
|
||||
|
||||
fixtures = {
|
||||
discovery: ["/latest.json", "/categories.json", "/category/bug/l/latest.json"],
|
||||
discovery: ["/latest.json", "/categories.json", "/c/bug/l/latest.json"],
|
||||
topic: ["/t/280.json"],
|
||||
user: ["/users/eviltrout.json",
|
||||
"/user_actions.json",
|
||||
|
|
Loading…
Reference in New Issue
Block a user