[Routing] Used Repository::$slug if value is not null to generate route