In a url, is there an order to respect if I want to use both query parameters ?value=1…
- User
In a url, is there an order to respect if I want to use both query parameters ?value=1 and anchor #my_element_id?
Assistant
Yes, there is a specific order: query parameters must come before the anchor/fragment.
The correct order is:
codehttps://example.com/page?value=1#my_element_idThe URL structure follows this pattern:
scheme://authority/path?query#fragmentIf you put the anchor first, like
https://example.com/page#my_element_id?value=1, the?value=1part would be treated as part of the fragment identifier rather than as a query parameter, which isn't what you want.So always put your query parameters (starting with
?) before your anchor/fragment (starting with#).- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.