Using anchor with non-canonical (i.e. "more") URL

Permalink
I apologise if this inquiry has been made previously, I've done my searching but couldn't find a satisfying answer.

Let's say on page A, I have a URL to an anchor in page B, with a parameter.
This URL is an additional URL to page B.

When I click the link on page A, the link gets automatically converted to the canonical URL of the page B and the page doesn't go to where I want it to. (The URL has a parameter)

Does anyone how to not automatically convert the additional URL into the canonical URL?

Thanks!