Avoiding Static URL must end with a slash error