Fix url for community apps

This commit is contained in:
Alexandre Aubin 2018-12-14 21:35:31 +01:00
parent 334c8d0c7c
commit caa01cb6b1

View file

@ -115,7 +115,7 @@ else if($app_status == 'community') {
// If the user submitted his or her server and the app is community, redirects to the server
if(isset($_POST['server']) AND !empty($_POST['server']) AND $app_status == 'community') {
$server = rtrim(preg_replace('#^https?://#', '', $_POST['server']),"/");
$url = 'https://'.$server.'/yunohost/admin/#/apps/install/apps';
$url = 'https://'.$server.'/yunohost/admin/#/apps/install';
?>
<form class="login-form" name="input" action="<?php echo $url; ?>" method="get">
<p style="text-align:center;color:white;"><?php echo $locale['community_instructions']; ?></p>