updating buildConfigUrl to strip trailing slashes from pathname