Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-3788: Admin Cores UI should redirect to newly created core details

Stefan Matheis62caa1d6924a
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 0f592e295db..e10b3d29c44 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -41,6 +41,9 @@ New Features
Optimizations
----------------------
+* SOLR-3788: Admin Cores UI should redirect to newly created core details
+ (steffkes)
+
Bug Fixes
----------------------
diff --git a/solr/webapp/web/js/scripts/cores.js b/solr/webapp/web/js/scripts/cores.js
index cf5cf1c5d96..150197e340b 100644
--- a/solr/webapp/web/js/scripts/cores.js
+++ b/solr/webapp/web/js/scripts/cores.js
@@ -326,6 +326,12 @@ sammy.get
var form_callback = {
+ create : function( form, response )
+ {
+ var url = path_parts[1] + response.core;
+ context.redirect( url );
+ },
+
rename : function( form, response )
{
var url = path_parts[1] + $( 'input[name="other"]', form ).val();