Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
mcsg Posted January 21, 2021 Posted January 21, 2021 When writing an content using the editor for a Pages database content field, I would like to allow our editors to use a variable for the base URL so that when we move from staging/dev to prodcution, it will pickup the the change in base_url no matter what system it might be running on. Is there a way to write the variable into the Editor field so it will be picked up correctly when moved to a different host or domain? For example: Here is the link: {base_url}/our-internal database
Ryan Ashbrook Posted January 21, 2021 Posted January 21, 2021 You can create a custom CKEditor plugin that allows you to create relative links (our default Link plugin will automatically add a protocol if it's not present). https://take.ms/XPywd
mcsg Posted January 21, 2021 Author Posted January 21, 2021 Thanks @Ryan Ashbrook. Since Google and others prefer absolute links for better SEO, is search and replace in the database our only other option when moving between staging and production?
Recommended Posts