tag lists: fix broken '?' links for artist tags.

This commit is contained in:
evazion
2021-02-05 20:22:55 -06:00
parent 031032326e
commit 1eb094c862
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
<% tags.each do |t| %>
<li class="tag-type-<%= t.category %>" data-tag-name="<%= t.name %>">
<% if t.artist? %>
<%= link_to "?", show_or_new_artists_path(t.name), class: "wiki-link" %>
<%= link_to "?", show_or_new_artists_path(name: t.name), class: "wiki-link" %>
<% elsif t.name =~ /\A\d+\z/ %>
<%= link_to "?", wiki_page_path("~#{t.name}"), class: "wiki-link" %>
<% else %>

View File

@@ -3,7 +3,7 @@
<li class="tag-type-<%= t.category %>" data-tag-name="<%= t.name %>">
<%# ignore search:foo metatags %>
<% if t.artist? %>
<%= link_to "?", show_or_new_artists_path(t.name), class: "wiki-link" %>
<%= link_to "?", show_or_new_artists_path(name: t.name), class: "wiki-link" %>
<% elsif t.name =~ /\A\d+\z/ %>
<%= link_to "?", wiki_page_path("~#{t.name}"), class: "wiki-link" %>
<% else %>