How to fix Dynamic route segment parameter must be a non-empty string in React | DevErrors