Query parameters from $_GET vs. using the Drupal menu path


There's a page with a logic that puts it together and that is determined by path. Core never bypasses the menu router. Parameters are somewhat orthogonal to this. For example, a page doesn't change in itself just because there's a form in it that uses a destination to redirect to said page so we do not add it to the clean URL. Pager is a little different because you could argue that path/to/some/view could become path/to/some/view/1 path/to/some/view/2 as it is paged but how do you differentiate real arguments (like a node id) from a pager? It's better to use a query parameter.

Tags: Routes

Similar questions

How do I retrieve the query parameters from a path?
How do I retrieve the query parameters from a path. Here's my path: /search?keys=hello Here is what I've tried: Here are the results: Test 1: NULL Test 2: NULL Test 3: '/search' Test 4: 'GET' Test 5: NULL Test 6: NULL Test 7: NULL Test 8: NULL Test 9: array ( ) Test 10: '/search' Why is this not working?
How to use user_load() for user on $_GET[] request in Drupal way?
I'm trying to get UID of users on $_GET[] request, following is my module code: my_module.module my_module.js
$_GET in drupal 8
In drupal 8 $_GET not work . When I use \Drupal::request()->query->get('id') in my module ,it just work for first time . For example I create this code : For first time ( id=1 ) it's work but for seconde time ( id=2 ) it's not work and still shows id=1
Drupal filters and $_GET arguments
DRUPAL 6 Hello everybody, can someone help me with this problem? I have a carousel (view) called 'heat_model_carousel' and this carousel displays a list of sauna's. SO, each sauna has a field called 'Model Type' - which can be : Basic, Advanced or Premium. Now, i added a block of links : <a href = '?model_type=Basic'></a> I just want to...
Why are URL encoded values in $_GET variables broken?
I'm working with a payment gateway that returns payment feedback in the URL. One of the variables has a special character in it: The %DC is Ü. However, it's coming through instead as �—and in case that doesn't display properly here, it's a black triangle with a question mark inside it. I confirmed this by replacing my menu callback with a simple pr...
Is it possible not to have $_GET values in views' exposed filters?
I can't seem to find a setting to do this nor am I familiar with any hook to implement this. Is it even possible? I don't want to use ajax though.

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.