url slash fix and secure improve