aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/track_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb
index ff17eb25f..f24994276 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -70,6 +70,13 @@ class TrackController < ApplicationController
# join just to get / and . to work in a query.
query_array = params[:query_array]
@query = query_array.join("/")
+
+ # XXX more hackery to make alternate formats still work with query_array
+ if /^(.*)\.json$/.match(@query)
+ @query = $1
+ params[:format] = "json"
+ end
+
@track_thing = TrackThing.create_track_for_search_query(@query)
return atom_feed_internal if params[:feed] == 'feed'