WordPress.org

GlotPress

Ticket #169: redirect-after-adding-project.patch 

File redirect-after-adding-project.patch , 471 bytes (added by juanramondiaz, 2 years ago)

Path to accomplish the purpose of the ticket

Line 
1Index: gp-includes/routes/project.php
2===================================================================
3--- gp-includes/routes/project.php      (revision 648)
4+++ gp-includes/routes/project.php      (working copy)
5@@ -138,7 +138,7 @@
6                        gp_tmpl_load( 'project-new', get_defined_vars() );
7                } else {
8                        $this->notices[] = __('The project was created!');
9-                       $this->redirect( gp_url_project( $project, '-edit' ) );
10+                       $this->redirect( gp_url_project( $project ) );
11                }
12        }
13