Fixed urls generating. Extracting default template.