Ensure script generation adds a blank line at the end. Added parameters
to redirect. On routing Ignores if the last char is '/'.