Questions tagged [url-parameters]

URL Parameters are parameters whose values are set dynamically in a page’s URL, and can be accessed by its template and its data sources. This makes pages incredibly dynamic, enabling a single page to power an endless number of views.

The URL points to a web page. The URL may contain a static path, such as:

http://www.myStore/womens/Clothing.jsp

As is the case with any URL, you can append dynamic parameters that are used by the page located by the URL to the URL itself. At runtime, those dynamic parameters are replaced by property values, then passed to the page. For example:

http://www.myStore/womens/Clothing.jsp?type=$itemType&name=$displayName

The type parameter is replaced with the item’s item type and the name parameter is replaced by the item’s display name.

1203 questions
6
votes
2 answers

How to pass a url as a url parameter when there is a question mark in it?

I am using this line to pass the a url, main_id and user_tag_list to the handler: self.response.out.write(""" edit tag set """ % (item.url, main_id, item.tag_list)) this…
Zeynel
  • 13,145
  • 31
  • 100
  • 145
6
votes
1 answer

Read URL query param values (Vue.js)

In vuejs callback URL I've some parameter value and I need to read this param value. For example the return url is: http://localhost:8080/#/sucesspage?encryteddata=abdeshfkkilkalidfel&9a I have tried this.$route.query.encryteddata but I'm got null…
Rajesh
  • 85
  • 1
  • 2
  • 10
6
votes
0 answers

Prefill Microsoft Bookings web page form (it uses data-reactid elements) with URL link

I'm trying to construct URL links, to include in emails, that pre-populates the recipient's information in the form on the site. The site is a Microsoft Bookings site. The placeholders are not the field IDs, but this is an example of what I'm trying…
konalion
  • 163
  • 8
6
votes
1 answer

Underscores vs dashes in HTTP parameter names

I'm familiar with the convention of using hyphens to separate words in URL paths. What about parameter names, such as within a
:
is that better or my-special-field? I've seen Google use…
at.
  • 50,922
  • 104
  • 292
  • 461
6
votes
3 answers

Set default value for URL parameter in HTTP GET in node.js

I am using node.js restify. I have a HTTP GET request that looks like this; http://127.0.0.1//read_val?XXX=123&YYY=456&ZZZ=789 In my handling function, to retrieve the URL parameters, the relevant code will be like this; var api_get_func = function…
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
6
votes
1 answer

Does HTTP URL parameter order matter for caching?

Are the two URLs equivalent with respect to browser caching and website seo? 1 - http://example.com/resource.html?a=a&b=b 2 - http://example.com/resource.html?b=b&a=a If the resource for the first URL is cached and the browser needs to find the…
nikdeapen
  • 1,581
  • 3
  • 15
  • 27
6
votes
1 answer

Python HTTP Request Binary Data using Requests

The following code only works in curl. It would be nice if you could tell me why it isnt working in Python using Requests curl 'http://cdcnepal.com/Modules/HOmeMoviesLists/WebService2.asmx/GetShowsByDate' \ -H 'Content-Type: application/json;…
ShapNepal
  • 93
  • 1
  • 1
  • 3
6
votes
2 answers

Django url parameter passing

I am not even sure what category in Django this question falls in and I am very new to django. I have tried looking for Django post requests, parameter passing and even checked under Django APIs but have not found what I am looking for. What I am…
user1270384
  • 711
  • 7
  • 24
  • 53
6
votes
2 answers

Submit webform via URL only?

I'm not really sure this belongs here, so instead of downvoting just lemme know if so and I'll quickly move it on. Anyway, there is a website that has a search page, that when hitting the search button it doesn't include the search query in the…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
6
votes
4 answers

Storing a list of key value pairs in a url parameter, javascript.

Assuming www.mydomain.com?param1=example as an example. What is the best way to store a second parameter that is a list of key value pairs? At the minute I use ¶m2=key|value,key|value. I separate the key from the value using a vertical line,…
Jon Wells
  • 4,191
  • 9
  • 40
  • 69
5
votes
2 answers

How to derive state from URL, but also update the query-params whenever state changes in Next.JS?

Beginner here, but finding this quite tricky. So some help would be appreciated! I want to have users filter through some options. Those filters should be reflected in the URL. e.g. : http://localhost:3000/items?counter=1 Now when a user visits…
antonwilhelm
  • 5,768
  • 4
  • 19
  • 45
5
votes
2 answers

window.location.hash issue in Firefox

Consider the following code: hashString = window.location.hash.substring(1); alert('Hash String = '+hashString); When run with the following hash: #car=Town%20%26%20Country the result in Chrome and Safari will be: car=Town%20%26%20Country but…
Yarin
  • 173,523
  • 149
  • 402
  • 512
5
votes
0 answers

Simple router with URL parameter variables

I'm trying to make a simple router with URL parameters for IDs. e.g. localhost/profile/123 This works fine but if I remove preventDefault so that the links work as normal, or refresh the browser, or go directly to that same URL, it does not work…
georgesamper
  • 4,989
  • 5
  • 40
  • 59
5
votes
1 answer

How can we update a cell in Google Spreadsheet through a URL parameter?

I have a Google Spreadsheet that is intended for public access. However, I'd like to allow for URL parameter(s) through a user's browser that can help modify one or more cells of the spreadsheet before the entire spreadsheet is presented on the…
krbabu
  • 51
  • 1
  • 5
5
votes
0 answers

Use semicolon(;) in Path Parameters in Swagger (OpenAPI 3.0)

I want to write a swagger API doc for some OSRM APIs. There is a coordinates path parameter which is: String of format {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] . for example:…