Lookup problem with character '/' in the data

(v2026.11)

I have a project column with data like "M5024403/0123". While I'm typing M5024403, the lookup records are found. But when I type '/', the response is empty.
The lookup url:

https://mydomain.com/api/lookup?q=m5024406%26023&n=10&rnd=111750&start=-1

The response:

{
"page": "ParteTrabajoAdd",
"field": "proyecto",
"result": "OK",
"records": [ ],
"totalRecordCount": 0,
"sql": "SELECT `id_proyecto` AS `lf`, `id_proyecto` AS `df`, `descripcion` AS `df2`, \\u0027\\u0027 AS `df3`, \\u0027\\u0027 AS `df4` FROM proyectos WHERE CONCAT(COALESCE(`id_proyecto`, \\u0027\\u0027),\\u0027, \\u0027,COALESCE(`descripcion`,\\u0027\\u0027)) LIKE \\u0027m5024406\\u0026023%\\u0027 AND `estado` = \\u0027Pedido\\u0027 AND `delegacion` =  \\u0027M502\\u0027 ORDER BY `id_proyecto` LIMIT 10"
}

It seems there's a problem with the url encoding for /, being %26 instead of %2F

I think this behaviour start with version 2026.9 or 10

Thanks

If value is "M5024403/0123", the URL sent by select2 becomes /api/lookup?q=M5024403%470123, but server sees it as /api/lookup?q=M5024403/0123 and may be confused by the "/" (as the route separator) and somehow interpret it as /api/lookup?q=M5024403&0123 ("m5024406%26023" is URL encoded version of "m5024406&023"). You may test and verify if that is the case first, e.g. you can modify jquery/select2.full.js, change:

      data: function (params) {
        return $.extend({}, params, {
          q: params.term
        });
      },

to

      data: function (params) {
        return $.extend({}, params, {
          q: encodeURIComponent(params.term)
        });
      },

If that works, then we can consider how to work around.