Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 21, 20214 yr 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
January 21, 20214 yr Community Expert 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
January 21, 20214 yr Author 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?