My custom link works only on home page

You link to the anchor, so you have to put all link in there. And you’ve done it.

But there are some additional "//" in your URL, so it’s not valid URL, so browsers may ignore some part of it.

Just remove those "//" and it should work just fine.