                  dynamic_routes.append((httpmethods, methodname))
  
          ret = []
          for route in self.routes:
              if route.mapping == {'{httpmethod}': '{methodname}'}:
                  # Dynamic routes (@link or @action decorator)
                  for httpmethods, methodname in dynamic_routes:
                      initkwargs = route.initkwargs.copy()
                      initkwargs.update(getattr(viewset, methodname).kwargs)
                      ret.append(Route(
 
</s> remove                 dynamic_routes.append((httpmethods, methodname))
 </s> add                 if collection:
                    collection_routes.append((httpmethods, methodname))
                else:
                    dynamic_routes.append((httpmethods, methodname))
            if route.name == '{basename}-dynamic-{methodnamehyphen}':
                  dynamic_routes.append((httpmethods, methodname))
  
          ret = []
          for route in self.routes:
            if route.name == '{basename}-dynamic-{methodnamehyphen}':
                  # Dynamic routes (@link or @action decorator)
                  for httpmethods, methodname in dynamic_routes:
                      initkwargs = route.initkwargs.copy()
                      initkwargs.update(getattr(viewset, methodname).kwargs)
                      ret.append(Route(
keep keep keep keep replace keep keep keep keep keep
 Add support for collection routes to SimpleRouter 
rest_framework/routers.py