Determine active route for web page scenarios?

Author: xpressivecodeCreated Oct 23, 2017Updated May 20, 2025

We are using your router in a project and would like to know if there is a way to determine the active route to set a class name on our html navigation element(s), vs using javascript.

Any thoughts or recommendations?

Thanks

Source: julienschmidt/httprouter