# Redirect URL on bitbucket

**URL:** <https://drone.discourse.group/t/redirect-url-on-bitbucket/9413>\
**Category:** Drone Support\
**Created:** [August 23, 2019, 5:55am UTC](https://drone.discourse.group/t/redirect-url-on-bitbucket/9413 "2019-08-23T05:55:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashb0503](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashb0503/32/4444_2.png) [@ashb0503](https://drone.discourse.group/u/ashb0503)\
**Post date:** [August 23, 2019, 5:55am UTC](https://drone.discourse.group/t/redirect-url-on-bitbucket/9413/1 "2019-08-23T05:55:08Z")

</div>

I’m running Drone locally (to test) and have ngrok forwarding to the Docker container. Hitting [http://abc123.ngrok.io](http://abc123.ngrok.io) redirects to /login as expected. Per the documentation ([https://docs.drone.io/installation/bitbucket-cloud/single-machine/](https://docs.drone.io/installation/bitbucket-cloud/single-machine/)), I set the Bitbucket Callback URL to `http://abc123.ngrok.io/login` . Connecting through login, though, I get an `Invalid redirect_uri` error from Bitbucket. But without ngrok, i can see my repo in my local server.  
Any idea how can i fix that ☹
