Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

During sign in, redirect link does not goes to original page #474

Open
ShyRoute opened this issue Feb 3, 2021 · 7 comments
Open

During sign in, redirect link does not goes to original page #474

ShyRoute opened this issue Feb 3, 2021 · 7 comments
Labels

Comments

@ShyRoute
Copy link

ShyRoute commented Feb 3, 2021

Thank you for the good repo!

When I use utterances in my blog, at first it says i need to 'sign in to comment'.

If i click the 'sign in to comment' button, it does not goes to original address and it didn't sign in.

the button's link is
https://api.utteranc.es/authorize?redirect_uri=https%3A%2F%2Fshyroute.github.io%2F

so it goes to my blog's main page, not to its original page, and I can't to sign in for comment.

e.g. if i click the sign in button, its goes to
https://shyroute.github.io/?utterances=(some hash string) and it is my blog's main page.

@jdanyow
Copy link
Member

jdanyow commented Feb 6, 2021

Do you have a link to a page on your blog?

@offetuoso
Copy link

@jdanyow I also have the same problem.

jekyll _config : permalink: pretty
post url https://offetuoso.github.io/foo/bar/2021/02/03/Markdown/

post shin in with github a tag's href is "https://api.utteranc.es/authorize?redirect_uri=http%3A%2F%2Foffetuoso.github.io%2F"

link go to https://offetuoso.github.io/?utterances='parameter'

jekyll _config : /:title/
https://offetuoso.github.io/Markdown/

same too,

i need help 😅

@jdanyow
Copy link
Member

jdanyow commented Feb 8, 2021

@offetuoso utterances uses the page's canonical link when available.

This page's canonical link is missing the path.
https://offetuoso.github.io/foo/bar/2021/02/03/Markdown/

<link rel="canonical" href="http://offetuoso.github.io/"/>

@offetuoso
Copy link

@jdanyow thanks !
i'll checking canonical link

metavalent added a commit to GlobalCognitionGroup/metavalent.github.io.archive that referenced this issue Mar 27, 2021
@sweeneyskirt-sl
Copy link

I had the same issue with the redirect on sign-in. When I inspect the page, I see the following warning:

A cookie associated with a cross-site resource at http://utteranc.es/ was set without the `SameSite` attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

@Misaka-0x447f
Copy link

please add this to readme.

@ericsmalling
Copy link

Thank you for this info - my Hugo based site has same problem. Change link ref as follows and works fine now!

<link rel="canonical" href="{{ .Permalink }}"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants