• Resolved mirshadrahman

    (@mirshadrahman)


    When I copied one of the template sites to the new site, it copies all the contents but the url is not changing to the new site url for buttons and other elements.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Stone

    (@superdav42)

    @mirshadrahman Thanks for reaching out.

    When a new site is created it is duplicated from the templates and it should perform a search/replace of the old url to the new url. It sounds like that not happening for you. Are you using a page builder? how are the buttons structured?

    If you share the live url of the template site and the duplicate and tell me where I can find the button with the wrong url, It would help me to troubleshoot this problem.

    Thread Starter mirshadrahman

    (@mirshadrahman)

    Yes I’m using the elementor page builder. It’s not working properly on elementor pages and elements.

    Template URL: https://webweaverdesigns.co.uk/mirshad

    New Site URL: https://webweaverdesigns.co.uk/mysite2/

    It’s having issue only with links of custom post types.

    Thanks.

    • This reply was modified 4 months, 2 weeks ago by mirshadrahman.
    Plugin Author David Stone

    (@superdav42)

    Hi @mirshadrahman ,

    Thanks for reporting this — we’ve tracked down the issue and it turns out there were actually three related bugs in our site duplication code that were causing URLs in Elementor elements (buttons, links, etc.) to not get updated when creating a new site from a template.

    Here’s what was happening in simple terms:

    1. Replacement was getting skipped prematurely. When we duplicate a site, we replace URLs in a specific order — upload folder URLs first, then the main site URL. On subdirectory installs like yours, once the upload URL was updated (e.g. /mirshad/wp-content/uploads → /mysite2/wp-content/uploads), our code saw that the new site name already existed in the data and incorrectly assumed the job was done — skipping the
      replacement for all remaining URLs like button links.
    2. Elementor’s data format wasn’t fully accounted for. Elementor stores its page data as JSON, which escapes forward slashes (/ becomes \/). Our search-and-replace was looking for normal slashes and never matched the escaped versions, so Elementor URLs were silently skipped.
    3. Deeply nested data wasn’t being processed. Some URL references buried inside nested data structures were also being missed.

    Would you be able to test the fix on your site? You can install the branch version by downloading it from the PR page. Or directly https://nightly.link/Ultimate-Multisite/ultimate-multisite/actions/runs/21490680774/ultimate-multisite.zip After installing, try creating a new site from your template and check whether the button and element URLs are now correctly pointing to the new site. Let us know how it goes!

    Thread Starter mirshadrahman

    (@mirshadrahman)

    I have tested with the new update; the issue is fixed now. I can clone templates without any issue. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.