innoq / iqvoc

iQvoc - A SKOS(-XL) Vocabulary Management System for the Semantic Web
http://iqvoc.net/
Other
117 stars 44 forks source link

RoutingConstraints conflict with language codes contained in routes #411

Open fabianzwodrei opened 3 years ago

fabianzwodrei commented 3 years ago

Using languages like 'ar' for labels conflict with the routes and the routing contraints, where string 'ar' is matching the 'search' route - 'search' will be treated as a :lang.

The regex in the routing_constraint of lib/iqvoc/configuration/core.rb could be:

params[:lang].to_s =~ /^(#{langs})$/

mjansing commented 3 years ago

Hi @fabianzwodrei,

thanks for reporting. Can you supply a test case for your issue? Currently I don't know what's exactly wrong.