V8.5: How to swap block render on page depending on route?

@Myq Yes, both controllers have the same action. I couldn’t find any better way but to swap block render based on action. Now the problem is I can’t get the page’s action and parameter, because controller->getAction() doesn’t return anything.