A platform for community discussion. Free, open, simple.
FIX: Allow customized usernames to work in this route
Robin Ward83d8fa2892b7
diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rbindex 905f0077cb2..e79137211c0 100644--- a/app/controllers/list_controller.rb+++ b/app/controllers/list_controller.rb@@ -293,10 +293,11 @@ class ListController < ApplicationControllerdef page_params(opts = nil)opts ||= {}route_params = { format: 'json' }- route_params[:category] = @category.slug_for_url if @category- route_params[:parent_category] = @category.parent_category.slug_for_url if @category && @category.parent_category- route_params[:order] = opts[:order] if opts[:order].present?- route_params[:ascending] = opts[:ascending] if opts[:ascending].present?+ route_params[:category] = @category.slug_for_url if @category+ route_params[:parent_category] = @category.parent_category.slug_for_url if @category && @category.parent_category+ route_params[:order] = opts[:order] if opts[:order].present?+ route_params[:ascending] = opts[:ascending] if opts[:ascending].present?+ route_params[:username] = UrlHelper.escape_uri(params[:username]) if params[:username].present?route_paramsend