In my navigation config file I have:
sub_nav.item t.id, t.h1.force_encoding("UTF-8"), tag_path(d.slug, t.slug, params.except(:controller, :action).merge(:tag_id => t.id, :page => nil, :kat_id => nil))
I don’t want it to be a link if params[:tag_id] = t.id
1 Answer