Bouncer cannot redirect to url which contains query fragment, e.g. http://localhost/node/123#some_anchor . This seems more like http/html-issue than bouncer issue, but I'm writing it anyway because there is a workaround.
Background: The fragment is not actually a part of the page address but part of the link address. Web servers understand page addresses while web browsers understand link addresses, which are superset of page addresses. So, if you have link that references http://localhost/node/123#some_anchor, the web browser actually loads http://localhost/node/123 from the server and then seeks anchor 'some_anchor'.
The problem: Bouncer can redirect only to page addresses. Assume you create a link as: bouncer_url('http://localhost/node/123#some_anchor'). The Bouncer redirects to a valid page link, but with unexpected destination. The destination page is http://localhost/node/123#some_anchor AND NOT http://localhost/node/123 with anchor 'some_anchor' inside the page.
The workaround for now: Rewite your link as: bouncer_url('http://localhost/node/123').'#some_anchor'