Skip to content

[2.1.0] underscore in site url breaks admin redirect - The page isn't redirecting properly #5809

Closed
@tecjam

Description

@tecjam

Preconditions

My test system:

`Debian GNU/Linux 8 (jessie)

Server version: Apache/2.4.10 (Debian)
Server built:   Nov 28 2015 14:05:48

PHP 5.6.22-0+deb8u1

mySQL  5.6.30`

Steps to reproduce

Create a local url local.magento2_test in /etc/hosts:

127.0.0.1 local.magento2_test

and create a /etc/apache2/sites-available/magento2_test.conf with the following contents:

`<VirtualHost *:80>
  ServerName local.magento2_test
  DocumentRoot /home/dev/www/web/

  <Directory /home/dev/www/web/>
    Require all granted
    Options -Indexes +FollowSymlinks
    AllowOverride all
  </Directory>`

  php_value always_populate_raw_post_data -1
  php_value upload_max_filesize 100M
  php_value post_max_size 100M
</VirtualHost>

Enable the site with sudo a2ensite magento2_test.conf and restart apache2 sudo service apache2 restart.

Now go to your web root directory cd /home/dev/www/web/ and install magento2 using composer:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

After installation call the url in your browser http://local.magento2_test and go through the installation (I called the admin url simply http://local.magento2_test/admin without ssl).

After the install completes, the frontend of the site works without a problem.
However, if you try and go to your backend http://local.magento2_test/admin you will receive a The page isn't redirecting properly - tried in Firefox and Chrome.

Expected result

  1. The admin login page should load normally

Actual result

The page isn't redirecting properly - tried in Firefox and Chrome.

My test system:

`Debian GNU/Linux 8 (jessie)

Server version: Apache/2.4.10 (Debian)
Server built:   Nov 28 2015 14:05:48

PHP 5.6.22-0+deb8u1

mySQL  5.6.30`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions