CodeKit 2 replacing hostname instances with preview URL

After settings up a new project for a quick static build using CodeKit 2, I noticed some strange (and buggy) behaviour an interesting feature. It appears that when previewing a project through CodeKit 2’s preview, it replaces all instances of the hostname specified in the project’s “External Server Address” with the preview URL. In my case, I’d set up my host in MAMP Pro as “GWAC”, pointing to this in CodeKit 2’s “External Server Address” mampScreen Shot 2014-09-09 at 8.49pm Wherever the string “GWAC” appears in my files, it is replaced with CodeKit’s preview URL. ie: Screen Shot 2014-09-09 at 8.53pm becomes: Screen Shot 2014-09-09 at 8.54pm Update This is expected behaviour. Makes sense:

@FraserHartDev That’s how links are changed to keep pointing at CodeKit’s proxy server instead of your origin server (MAMP) — Bryan Jones (@bdkjones) September 9, 2014