Use the new UI by default

This feature controls whether opening / in your browser redirects to the new UI (/editor) or the old UI (/.Node).

1 Changing the index.php

Before this feature can be used, please replace the contents of the file `/Node/var/httpd/htdocs/index.php` with the following:


<?php

$CONFIGFILE="/Node/etc/node.conf";

try {
    include_once($CONFIGFILE);
} catch ( \Throwable $e ) {
    $FEATURE["use_default_new_ui"] = false;
}

// Redirect to the New UI if enabled
if ( $FEATURE["use_default_new_ui"] === true ) {
    header( "Location: /editor/" );
} else {
    header( "Location: /.Node/" );
}

2 Configuration

/Node/etc/conf.d/*.conf

	$FEATURE["use_default_new_ui"] = true;

Setting this feature to true loads the New UI automatically.