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
2
votes
4 answers

Getting value of three consecutive elements in array

I have a large array, h, that contains several instances of a parameter called startingParam, which is always followed by two other parameters that are related but not always the same. I need to look for every instance of startingParam in the array,…
Isaac Lewis
  • 1,189
  • 2
  • 14
  • 26
2
votes
2 answers

Django date range filtering from url parameters returns empty queryset

I'm currently trying to do date range filtering from url parameters with get_queryset on a generics class based view, however I am receiving an empty array after doing date range filtering. It's a bit weird since I can print the queryset, just not…
2
votes
2 answers

OpenSSO (OpenAM) : Turn off URL enforcement

We're using OpenAM to manage sessions on our application. The problem is everytime we're trying to pass a parameters with the GET method, the ressource is blocked (error 403 - forbidden). If no parameter is set, everything is…
esylvestre
  • 1,850
  • 4
  • 21
  • 30
2
votes
1 answer

JS get all URL parameters available for final form page

I see a lot of ways and a number of them seem overly complicated. i do plan on appending a program that will use these parameters to test based on the results. But for now, I want a way to get all the URL parameters and post them using a p tag.
mastaSabin
  • 131
  • 1
  • 7
2
votes
2 answers

Javascript to populate a form field with data extracted from URL Parameters

I am trying to use javascript to extract data from the URL parameter 'utm_source' and add it to a field on a form so that it is stored in my contact database for tracking purposes. I had previously accomplished this on another site, but when trying…
2
votes
1 answer

JSF Managed Bean method call using URL parameters

I have a Session Scoped managed bean that backs my web-app. In this web-app I would like to have the ability for the user to execute a URL containing a user id and a date. This will then trigger a method in the managed bean, and jump the web-app to…
the_camino
  • 356
  • 5
  • 18
2
votes
2 answers

Get query parameters that aren't dynamic route parameters in next.js

I have a component that needs to copy all of the query parameters from the URL. However I do not want to copy dynamic route parameters. So if it is used in a component like: /pages/model/{modelId}.tsx and the url is…
kaan_a
  • 3,503
  • 1
  • 28
  • 52
2
votes
1 answer

Django query as string array from checkboxes form

I would like to get multiple inputs from a checkboxes form something and then filter it out from my database. That would be something similar to: http://127.0.0.1:8000/data/?class_type=[class_C,class_M] However what I am receiving from the query…
2
votes
1 answer

Why is language usually set as a path parameter rather than a query parameter?

For example, if you instead toggle the language option to be some other language like Spanish or something, the URL changes to: www.domain.com/sp/path Why not: www.domain.com/path?lang=sp? Also, why not: www.domain.com/path/sp
2
votes
1 answer

How to make URL parameter matching optional

I notice, if :id is not provided, then it wouldn't match. How do I change it so that :id is optional?
2
votes
1 answer

Django url path converter not working in production

I'm using path converter in my django app like so: # urls.py from . import views from django.urls import path urlpatterns = [ path('articles/', views.ArticleView), ] # views.py @login_required def ArticleView(request,…
Charles
  • 555
  • 4
  • 16
2
votes
0 answers

Parse "deepObject" url parameters with Spring MVC

Is there a "spring way" to parse deepObjects given in url as parameters? Let's say I have a "Filter" object with JSON representation: { "id": 5, "name": "Andrew" } Documentation of project says, that this is "deepObject", so when I receive url…
Bebido
  • 21
  • 2
2
votes
2 answers

Remove query string and parameters

For reasons that aren't worth going into here, Google has been indexing one of my sites with unnecessary query strings in the URL which are wordfence_lh, hid and wordfence_logHuman. I'd like to modify my .htaccess file to remove all those query…
Tran Duc Nam
  • 23
  • 1
  • 4
2
votes
1 answer

Remove search query from url without refreshing the page?

I have a simple task! I want that when I submit a form and get success or error message of the form, I go to the form directly ( using anchors ), so in order to do so, I added a parametr in my from action's URL, like that…
TaouBen
  • 1,165
  • 1
  • 15
  • 41
2
votes
2 answers

How to access stylesheet when I render as EJS in a dynamic route based on URL parameters

I recently started learning Express.js and mongoose by creating a simple To-Do List, and now I'm stuck with a basic thing. When I tried to render a EJS file in a dynamic route based on URL parameters, I was unable to apply the stylesheet.css which…