Use "Link to the page in the same app" option in that column settings, and choose page 10. Also you can pass any parameters to that modal page if you need so. Make sure page 10 is set as Modal dialog page.
Bro I don't need to pass any parameters. If I change modal dialog page into normal page it Will work correctly. But if I change it to modal dialouge this error is showing. 🥺
Change you column which you use as link to some string or something, set this column as a Link, and set "Link to page in the same app" to page 10. That is it. If you don't need to pass any parameters leave that settings empty. Set page 10 as Modal dialog. Job done.
Bro we don't need to pass anything. Just need to open a model dialog page. Yes you are correct I need something with apex prepare URL to achieve this. Can you specify how to give the link