id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
8868	After login trac always redirects to default page loosing initial target	anonymous	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.\r\nIt is similar to a problem described [ticket:2210 here] for PermRedirectPlugin. Actually the solution proposed there (attachment:ticket:2210:PermRedirect-urlfix.2.diff) by simply replacing\r\n{{{\r\nreq.redirect(req.href.login())\r\n}}}\r\nwith\r\n{{{\r\nref_url = req.base_url + req.path_info\r\nif(req.query_string): ref_url = ref_url + "?" + req.query_string\r\nlogin_url = req.href.login(referer=ref_url)\r\nreq.redirect(login_url)\r\n}}}\r\nalso works for the NoAnonymousPlugin\r\n	defect	closed	normal	NoAnonymousPlugin	critical	fixed	redirect	s.major@gmx.de	0.12
