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
4
votes
1 answer

JavaScript outerHTML encodes URL-string

I'm trying to set the src attribute of an image to a URL that I also generate in JS. The URL contains several parameters chained with a "&", but when getting the element's outer HTML as string value, all the "&" are replaced by "& ;, making the…
user1563232
  • 361
  • 3
  • 17
4
votes
1 answer

Serving static files on a url with parameters in Express

I am using the handlebars template engine with Express. When hitting endpoints without parameters, all my static files are served up. This is not the case when a parameter is included. app.engine('.hbs', hbs(handlebarsOptions)); app.set('view…
Reagan Cuthbertson
  • 330
  • 1
  • 2
  • 9
4
votes
4 answers

how to pass a url as a "url parameter" in express?

In my express app I have a router listening to api/shorten/: router.get('api/shorten/:longUrl', function(req, res, next) { console.log(req.params.longUrl); } When I use something…
Abdelaziz Mokhnache
  • 4,269
  • 3
  • 25
  • 35
4
votes
1 answer

Do Azure API Mgmt have a length limit on path/parameters?

I have some APIs published in Azure API Management, that call a REST web application behind the scenes. Most of the endpoints use the format: https://company.azure-api.net/dom/ep/{pathParamVal}?{queryParamName}={queryParamVal} If {queryParamVal} is…
Web User
  • 7,438
  • 14
  • 64
  • 92
4
votes
2 answers

socket.io with strange timestamp format (?)

I see requests to socket.io containing parameter t to be like LZywzeV, LZz5lk7 and similar. All examples that i found so far used second- or millisecond-based UNIX timestamps. Has anyone ever seen a timestamp format like this? (It is not…
AsconX
  • 161
  • 1
  • 15
4
votes
1 answer

In Laravel how to groupBy Url without parameter in the query

The below query is with lots of join table and DB::raw query, Which is working as expected. I would like to groupBy a "landing" which is a field in the table has URL stored. But I would like to groupBy URL without parameter. How can I achieve…
sanainfotech
  • 571
  • 4
  • 11
  • 29
4
votes
1 answer

PHP GET parameters automatic urldecode

I have a website that just moved from one server to another. On the old server the get-parameters of a request were automatically 'url decoded'. Now, on my new server, when I try to retrieve a GET parameter I don't get the url decoded value but the…
Terrabythia
  • 2,031
  • 3
  • 19
  • 29
4
votes
0 answers

Purpose of URI parameters in the path component

We know that it is possible to pass parameters in the path component of URIs using the syntax ;param=value. I wonder what this is good for, taking into account that parameters can also be passed in the query component. The Wikipedia article doesn't…
Gabor
  • 61
  • 2
4
votes
1 answer

Laravel getting {id} get parameter in middleware

The problem: I can't get the {id} parameter to be 'found' in the Middleware. My middleware needs to get the {id} param, in order to verify if the Auth::user() is the owner of the specified group. Request example: groups/admin/open/4 --> group 4 will…
Eltyer
  • 597
  • 6
  • 15
4
votes
2 answers

How can I use URL parameters while debugging in Flash Builder 4?

How can I use URL parameters while debugging in Flash Builder 4?
ben
  • 29,229
  • 42
  • 124
  • 179
4
votes
1 answer

How to accept multiple URL parameters in Rails with the same key?

In Rails, when you want to send a list of values through a single array parameter, you usually do so by suffixing the URL parameter key with []. For example, the query string ?foo[]=1&foo[]=2&foo[]=3 is parsed as params = { "foo" => [ 1, 2, 3 ]…
Stefan Majewsky
  • 5,427
  • 2
  • 28
  • 51
4
votes
2 answers

Flask - use decorator and route param to render data with custom jinja2 tag

I'd like to add metadata tags to a Jinja template via combination of decorator and route param: view: @meta_tags(foo='bar', ping='pong') @app.route('/some-route/') def action(slug): return render_template('action.html') template: …
sa125
  • 28,121
  • 38
  • 111
  • 153
4
votes
1 answer

Best way to restrict dynamic URL parameters matched to an AngularJS state

Currently I have a state url defined as: …/:table/edit/:id -> Consequently both urls: …/products/edit/5 & …/notValidTable/edit/5 load my tableEdit state as defined…
user3562674
  • 43
  • 1
  • 6
4
votes
1 answer

get GET parameters in JSF's managed bean

Can someone tell me how to catch parameters passed from URI in JSF's managed bean? I have a navigation menu all nodes of which link to some navigation case. And i have two similar items there: Acquiring products and Issuing products. They have the…
mykola
  • 1,736
  • 5
  • 25
  • 37
4
votes
3 answers

How to map URL contains slash in action (Wildcard mapping)

I have a package name /cabinet/s where all actions return JSP snippets. and the rest of the path of any URL for this package below /cabinet/s/actionid/snippetgroup/filename.do actionid - identifier for action class snippetgroup - identifier of…
simar
  • 1,782
  • 3
  • 16
  • 33