Creating a dynamic router path