Remove no longer used code in a template.
Now supports sites that don't have Use full friendly URLs enabled.