I have two variables: site1 = "www.somesite.com"; site2 = "www.somesite.com/"; I want to do something like this function someFunction(site) { // If the var has a trailing slash (like...
When should a trailing slash be used in a URL? For example – should my URL look like /about-us/ or like /about-us? I am fully aware of the SEO-related...