fixes wrong redirect url after committing an issue

Sat, 29 Aug 2020 11:51:12 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 29 Aug 2020 11:51:12 +0200
changeset 102
7eee7cad093d
parent 101
c34c81b87674
child 103
3d0d030dffa7

fixes wrong redirect url after committing an issue

src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java file | annotate | diff | comparison | revisions
--- a/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java	Sat Aug 29 11:49:53 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java	Sat Aug 29 11:51:12 2020 +0200
@@ -368,7 +368,7 @@
             dao.getIssueDao().saveOrUpdate(issue);
 
             // specifying the issue parameter keeps the edited issue as menu item
-            setRedirectLocation(req, "./projects/view/?pid=" + issue.getProject().getId());
+            setRedirectLocation(req, "./projects/view?pid=" + issue.getProject().getId());
             setContentPage(req, Constants.JSP_COMMIT_SUCCESSFUL);
         } catch (NoSuchElementException | IllegalArgumentException | SQLException ex) {
             // TODO: set request attribute with error text

mercurial