Update getModuleLink()

related to pscfv 8542 and 7534. when there is url rewring for a module, params 'module' and 'controller' shouldn't be added to the link, so they are set only when the module has no own route.