url "localhost" dans les mails

Topic created · 4 Posts · 20 Views
  • Bonjour,
    Dans les mails reçus, tous les liens commencent par https://localhost/... (y compris pour les images).
    Il doit falloir spécifier l'url de mon serveur quelque part ... mais où ?

  • Bonjour @jsuhm
    En effet l'adresse qui apparait est bien localhost.
    Un correctif est déjà programmé et sera déployé dans une version future.

    Merci de votre compréhension.

  • Merci pour ce retour.
    J'ai la v3.7.1, puis-je corriger à la main dans CenOS (mais où) ? relancer l'installeur ? dois-je attendre un mise à jour ?

  • Bonjour @jsuhm,

    Oui c'est bien dans le serveur qu'il faut effectuer une modification.
    Dans /var/www/d7/sites/default/settings.php, cherchez cette section:

    /**
     * Base URL (optional).
     *
     * If Drupal is generating incorrect URLs on your site, which could
     * be in HTML headers (links to CSS and JS files) or visible links on pages
     * (such as in menus), uncomment the Base URL statement below (remove the
     * leading hash sign) and fill in the absolute URL to your Drupal installation.
     *
     * You might also want to force users to use a given domain.
     * See the .htaccess file for more information.
     *
     * Examples:
     *   $base_url = 'http://www.example.com';
     *   $base_url = 'http://www.example.com:8888';
     *   $base_url = 'http://www.example.com/drupal';
     *   $base_url = 'https://www.example.com:8888/drupal';
     *
     * It is not allowed to have a trailing slash; Drupal will add it
     * for you.
     */
    $base_url = $_SERVER['SERVER_NAME']; $conf['base_url'] = $base_url; 
    

    Remplacez $_SERVER['SERVER_NAME']par votre URL (ex : https://gofast.community.fr)

    J'espère que ça résoudra votre problème en attendant un futur patch.

Log in to reply