Foxtrek_64 Posted January 11 Posted January 11 (edited) When creating a URL field in a database, we should have the option as a toggle to limit links to same-site URLs only. In other words, if your site's canonical link is www.example.com and this option is enabled, then provided links may only be to pages on www.example.com. Edit: I know I can provide regex for this as below, but I would consider this to be a bit of a hacky solution. https?:\/\/www\.example\.com\/forums\/topic\/[0-9a-zA-Z-]+\/? Edited January 11 by Foxtrek_64
Recommended Posts