getRawParameters gets incorrect order of parameters.

Created on 13 January 2025, about 1 month ago

Problem/Motivation

Some time ago on one of my site I found that the module don't work properly. Arguments from URL were getting incorrectly in code. I debugged this part of module's code and I found that array_pop in UrlPath.php gets incorrect element of parameters array.
When we use getRawParameters function in previous string before array_pop, we get this order of array elements:
arg_1
arg_0
view_id
display_id
So, array_pop receive display_id element. And it is wrong.

Proposed resolution

When we replace getRawParameters with getParameters the order array elements become correct:
view_id
display_id
arg_1
arg_0
and array_pop gets the correct element now.
I am not sure that this solution is correct. And I don't realize why it happened, but it works now.
(Patch is in next comment).

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine vitalius2009

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024