In magento 2, I want to do like this below way :
http://php722.local.com/m231/products/category1 => This is category url (Products is main category and category1 is sub-category of products)
Now, there are 2 tabs available in category1 category
Expected Result :
Now, If I execute this below url then, it should not be return 404
http://php722.local.com/m231/products/category1/?tab=video http://php722.local.com/m231/products/category1/?tab=photos http://php722.local.com/m231/products/category1/video http://php722.local.com/m231/products/category1/photos
- If 1st url execute then, video tab should be active & if 2nd url execute then, photos tab should be active.
Actual Result :
Right now, it's return 404. I think it's consider as action name and action will be not found so.
What should i need to do ? Is there any way to override url rewrite file or plugin ?
Any help would be appriciated.