For the Compare option in the Results Table Actions menu, you can configure the target page where the Compare component is located.
To configure the Compare action:
If you leave the field empty, then the current page is used.
For information on specifying a different page in the application, see Displaying component refinements or record details on a different page.