Skip to content

Commit 7c19093

Browse files
on success redirect to homepage respecting base_url setting (#76)
1 parent 61201a9 commit 7c19093

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

datasette_auth_github/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def github_auth_callback(datasette, request, scope, receive, send):
8686
extras = await load_orgs_and_teams(config, profile, access_token)
8787
actor.update(extras)
8888

89-
# Set a signed cookie and redirect to homepage
90-
response = Response.redirect("/")
89+
# Set a signed cookie and redirect to homepage (respecting 'base_url' setting)
90+
response = Response.redirect(datasette.urls.path("/"))
9191
response.set_cookie("ds_actor", datasette.sign({"a": actor}, "actor"))
9292
return response

0 commit comments

Comments
 (0)