check if url contains a given string golang code example
Example: jquery check if url contains string
//If URL contains "mystring"
if (window.location.href.indexOf("mystring") > -1) {
}
//If URL contains "mystring"
if (window.location.href.indexOf("mystring") > -1) {
}