I created a redirect URI to help me hook up my app with the Spotify api. I'm using the instructions provided here
I created a callback function in my default controller that is supposed to lead to the redirect URI, an html file I stored as views/default/callback.html
This is how the code in my default controller looks:
def callback():
redirect(URL('callback.html'))
I set the return URI in my javascript to be http://127.0.0.1:8000/uno/default/callback
When callback is called I am succesfully redirected to http://127.0.0.1:8000/uno/default/callback.html
which I would think is the place where my view (from views/default/callback.html) is located. However, the callback page isn't rendered at all. Instead I get a 303 error for URL redirection. The web2py console isn't very informative. It just says INFO:uno:====> Request: 'GET' '/uno/default/callback.html' [] <Storage {}>
I know I'm missing something very simple and I just can't understand what's going very well.
Any advice?