0

I Need to know how www.example.com?p=5 added in magento2 URL ?

2

?p=2

here p is parameter and 2 is a value.

p indicate page and value 2 indicate page 2

it comes when you click on this
enter image description here

You can check it using Inspect Element (F12)

enter image description here


For more click here

4
  • Is any javascript related click function ? – Parthavi Apr 20 '20 at 10:44
  • Magento provide Paging component. No any javascript call. – Msquare Apr 20 '20 at 10:46
  • What if i want to add custom param similar to p ? Like instead of p if i want change name ? – Parthavi Apr 20 '20 at 10:54
  • Your custom param and magento param same then both get same value. – Msquare Apr 20 '20 at 10:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.