How do I set the web browser that is opened when clicking on a URL?

This is a system-wide setting.

Go to Settings and search for Default apps. Change Web browser to the app of your choice.