Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-05-02 21:46:04

caruso_g
Member
From: Catania
Registered: 2009-04-11
Posts: 88
Website

Relative and absolute links when deploying to production

Hi all.
We set up a script to move DB from testing to production. All works as expected except some links written in textile kept the absolute link to testing website.
E.G.
"some link":some-link in testing becomes testing-domain.tld/some-link
syncing testing DB to production in the article we still have "some link":some-link while the HTML was still pointing to testing.

We guess this issue is due to TXP that creates a HTML version of article contents so that all links to testing they are carried on to production, so, is there a way to regenerate all of the Body_html column content at once?

Offline

#2 2011-05-03 12:20:48

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: Relative and absolute links when deploying to production

if the site is at the root, for dev and prod. you can try with an absolute link :
"some link":/some-link

I would like a system to link local ressources with textile. But this is not for today.

Offline

#3 2011-05-03 19:06:33

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Relative and absolute links when deploying to production

Does this help?

Offline

Board footer

Powered by FluxBB