• Resolved momchilvtodorov

    (@momchilvtodorov)


    Hello, we’ve just started using WP Staging Pro in our development process and I noticed that when i’m using links, for example in an image tag: <img src="/stage/wp-content/uploads/2021/04/PayPal.svg" alt="PayPal" />
    I need to make sure I put in /stage/ before anything else for the image to work. I guess that makes sense of course, but how is it going to work when pushed to production? Would I have to go back and change every link and remove the /stage/ part, or does the plugin do that during the push? If not, is there a workaround so that I can use a link format that will work both during staging and production?

Viewing 1 replies (of 1 total)
  • Plugin Author Rene Hermenau

    (@renehermi)

    Hello @momchilvtodorov
    please convert all your links to absolte ones like <img src="https://example.com/stage/wp-content/uploads/2021/04/PayPal.svg" alt="PayPal" />

    Then wp staging can do a search & replace on all of those links.

    It’s good practice to use absolute links instead of relative ones.

    Cheers
    René

Viewing 1 replies (of 1 total)

The topic ‘WP Staging url question’ is closed to new replies.