redirect to source after repost

This commit is contained in:
zeppi 2021-01-13 11:43:45 -05:00 committed by jessopb
parent 45bc5182ce
commit 93834fb281

View file

@ -74,7 +74,7 @@ function FileActions(props: Props) {
push(`/$/${PAGES.CHANNEL_NEW}?redirect=${pathname}`);
doToast({ message: __('A channel is required to repost on %SITE_NAME%', { SITE_NAME }) });
} else {
push(`/$/${PAGES.REPOST_NEW}?from=${encodeURIComponent(uri)}`);
push(`/$/${PAGES.REPOST_NEW}?from=${encodeURIComponent(uri)}&redirect=${pathname}`);
}
}