it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

[TOOL IMPROVEMENT] URL Parser Should Display Query Arrays Properly

Open NewtTheWolf opened this issue 1 year ago • 3 comments
trafficstars

Description

The URL parser's current implementation does not adequately handle query parameters that include arrays. When multiple values for a single query parameter are present, the tool does not display them in a clearly indexed array format, which may lead to confusion and misinterpretation of the data.

Desired Solution

Improve the URL parser so that it:

  1. Detects and indexes multiple values for a single query parameter.
  2. Displays these values in an array format within the UI, making it clear that multiple values are present.
  3. Provides a clear visual distinction for arrayed query parameters to enhance readability and usability.

Additional Context

When parsing URLs that contain arrays in query strings, such as example.com?bullet_point=Bullet1&bullet_point=Bullet2, the parser should display an indexed array such as:

'bullet_point[0]': 'Bullet1'
'bullet_point[1]': 'Bullet2'

Currently, it seems to aggregate these values or only show one, leading to an incomplete representation of the URL's data. This feature is crucial for users who deal with complex query strings.

Attached below are the current outputs of the URL parser for reference:

  • Current Output Display: grafik

  • Desired Output Example: grafik

NewtTheWolf avatar Feb 01 '24 13:02 NewtTheWolf

Hi @CorentinTh and @NewtTheWolf , fixed in #873

sharevb avatar Feb 04 '24 19:02 sharevb