mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-04-20 21:46:17 +00:00
Update WikiTree login flow
WikiTree login now appends `&authcode=x` instead of `?authcode=x` to the return URL
This commit is contained in:
@@ -161,9 +161,8 @@ export function WikiTreeLoginMenu(props: Props) {
|
||||
function login() {
|
||||
const wikiTreeTopolaUrl =
|
||||
'https://apps.wikitree.com/apps/wiech13/topola-viewer';
|
||||
// Append '&' because the login page appends '?authcode=...' to this URL.
|
||||
// TODO: remove ?authcode if it is in the current URL.
|
||||
const returnUrl = `${wikiTreeTopolaUrl}${window.location.hash}&`;
|
||||
// TODO: remove authcode if it is in the current URL.
|
||||
const returnUrl = `${wikiTreeTopolaUrl}${window.location.hash}`;
|
||||
returnUrlRef.current!.value = returnUrl;
|
||||
formRef.current!.submit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user