After login trac always redirects to default page loosing initial target
|Reported by:||anonymous||Owned by:||techtonik|
If user access a specified target, e.g. a wiki page or certain ticket and has to log-in in between, the target gets lost and user is redirected to the default page.
It is similar to a problem described here for PermRedirectPlugin. Actually the solution proposed there (attachment:ticket:2210:PermRedirect-urlfix.2.diff) by simply replacing
ref_url = req.base_url + req.path_info if(req.query_string): ref_url = ref_url + "?" + req.query_string login_url = req.href.login(referer=ref_url) req.redirect(login_url)
also works for the NoAnonymousPlugin