giscus icon indicating copy to clipboard operation
giscus copied to clipboard

Make redirect_uri param of oauth endpoint configurable.

Open iliayatsenko opened this issue 2 years ago • 1 comments

Hi! Thanks for your awesome work! I use Giscus on my personal blog iliayatsenko.github.io. Almost everything works beautiful and setup was very easy, but I still got some troubles while trying to improve my blog's UX.

Each time I click the "Sign in with Github" button in Giscus widget, I am redirected to the top of page. But I would like to be positioned near the commenting input, where I was before page reload. This could be achieved if, for example, we could configure the 'redirect_uri' param, which is sent to the server when "Sign in..." button is pressed.

Also changing this param manually would be useful to make Giscus work nicer with SPA. Because now it can't work with SPA correctly, because after signing in it always redirects to the initial page, on which script was loaded.

Does anyone have similar problems? How did you solve them?

iliayatsenko avatar Jul 22 '23 18:07 iliayatsenko

I have the exact same issue when I am attempting to use giscus with docsify. I was under the impression that backlink meta would help here, but unfortunately I think that only applies for submitting a new discussion, not signing in. Or at least, I couldn't get it to work.

oir avatar Jun 23 '25 03:06 oir