Calixte Denizet 0ac3b88686 Don't re-encode the file parameter in the viewer
`parseQueryString`, i.e. `URLSearchParams`, has already percent-decoded the
parameter, hence re-encoding it with `encodeURIComponent` and only restoring
the slashes leaves e.g. "?", "&" and "%" escaped. This breaks relative URLs
with a query string, e.g. `?file=%2Fget.jsp%3Fid%3D1%26x%3D2`, and relative
URLs with a percent-encoded path.

The value is now used as-is, except for a "#" in a relative URL which is
still escaped: since the viewer takes its own hash parameters from the
*viewer* URL, a "#" in the `file` parameter is assumed to be part of the
filename (see #19990).

It fixes #20137.
2026-08-05 20:22:55 +02:00
..
2026-04-25 12:13:12 +02:00
2026-06-30 10:45:15 +02:00