Like image link, you can redirect users when they click each gallery item instead of opening the database item page.
Try out the demo below.
How to
1.
Add a property with name oopy (not Oopy)
2.
Set the property type as URL
3.
Fill the property with the link (The link must start with http or https)
4.
Expose the property in gallery (Once exposed, you can hide it again)
Checkout the video