SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
var URL = "scratch.mit.edu/projects"; var mainURL = window.location.pathname; if (mainURL == URL) { mainURL += ( mainURL.match( /[\?]/g ) ? '&' : '#' ) + '_bypasssharerestrictions_'; console.log(mainURL) }