Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
URLs in theme mods and other options must be swapped on copy/clone #156
The OpenLab package copies template sites in two different places: during user-facing cloning, and during template-site cloning. (Would be nice to consolidate.) In both places, options are copied over wholesale. This fails to account for the fact that options may contain URLs or upload paths, which are site specific, and so need search-and-replace applied to them. See:
I recently fixed this in a separate project like this: cuny-academic-commons/cac-site-templates@36e3853 Since the clone process here was largely pulled from OpenLab course cloning, it should be a pretty straightforward port back.
In the case of group-type templates, the problem is somewhat deeper: the attachment directory is not being copied over, which means that theme-related path swapouts (like for the header image) won't work even if the paths are correct. A fix is coming up for both.