docpad / docpad-plugin-multiplelayouts

Multiple layouts per document for DocPad
Other
10 stars 3 forks source link

Fix urls on cloned documents to avoid overwriting originals #10

Closed nfriedly closed 9 years ago

nfriedly commented 9 years ago

This is the second part of the fix for #9 - this ensures that the new doc doesn't overwrite the original due to having the same url.

nfriedly commented 9 years ago

Nevermind this, I was setting url and relativePath to the same value, but then I figured out that url must start with / and relativePath must not start with /. After I straightened that out, everything worked swimmingly.