Flagging cancel link seems to redirect to wrong path when using confirm form, when you have the website installed in subfolder.
For example, I got site installed in domain.com/a/b/c/. When I use the confirm form for flagging and whenever I use the cancel button after clicking flag/unflag link, the redirect takes me to domain.com/a/b/c/a/b/c/<correct-path>. So it adds the subfolders where the site is installed to the redirect path again, when it should just use Drupal path.
When I hover over the initial flag/unflag link, I can see the ?destination path is set to ?destination=/a/b/c/<correct-path>, which is probably why the redirect ends up adding the folders again in the URL. If I manually remove those values from ?destination and just leave plain Drupal path there (like ?destination=user/1 instead of ?destination=/a/b/c/user/1), everything works fine.
I would assume this doesn't happen when site is installed in domain root.