This module seems to send or redirect to index.php (I thought this to be a server error, but after uninstalling pathauto, the issue desisted) example:
mysite.com/index.php/about
renders in address bar instead of
mysite.com/about

This was random, sporadic, and seemed to start after drupal core 8.0.3 or pathauto last update.
So sorry if this is not the module causing this.

Comments

sushichris created an issue. See original summary.

sushichris’s picture

Issue tags: +pathauto, +redirect
Berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Pathauto is doing those redirects but pretty sure it's essentially a configuration/server issue. While we redirect, it's in the end Drupal core that decides to what we should redirect and other redirects and links might have the same problem.

sushichris’s picture

It stopped doing it for now, it was only happening with one site and I am still at a loss as to why it was happening. I think it completely stopped after either updating the entities with drush entity update command, or Drupal's 8.0.4 update. (It seemed as though there was a redirect tug-o-war happening) I too thought it was a server issue, and was live chatting with my host for a considerable amount of time. If it happens again I will try and get as much info and follow up here.

sushichris’s picture

So this actually started back up a few days ago... usually after a cache clear I think... I am not getting any errors specific to the issue. This is most frustrating for me because I have my billing portal set up in a sub directory and the index.php inserts itself before the destination resulting in a page not found error. It started with drupal.0.3 and pathauto update around the same time. Also I would like to add that this only happens while incognito or not logged in to site, and seems to happen randomly. I am guessing there is a misconfig in my settings.php or .htaccess file that is probably causing this if it is not the pathauto module itself. I am not to familiar with the settings that would cause drupal to redirect to index.php if anyone happens to know what is causing this or why this is happening please let me know any help would be GREATLY appreciated!

emptyvoid’s picture

I'd like to confirm that after upgrading to Drupal 8.0.5 and upgrading pathauto this also appears for all of the paths I've defined for all entities (nodes, taxonomy, and users).

For now the following process appears to have removed or suppressed the issue discussed.

1) Clear all Caches
2) Delete all existing aliases
3) Bulk generate aliases (note I had to generate each group one at a time as the bulk queue would never end if I selected all)
4) Clear all caches

I'll post a follow up should it occur again and list any info I can obtain from debugging the code.

sushichris’s picture

This issue has mystified me to a great extent...

I realized that in the menu section "/about" entering the complete address "www.example.com/about" will prevent this from happening. I am not sure if this is a pathauto issue I believe it continued even after uninstalling pathauto (perhaps some settings remained even after the uninstall). A temporary fix to say the least.

Berdir’s picture

#3 was actually wrong. Pathauto does *not* redirect anything or anyone anywhere.

The module just creates aliases, that drupal then follows. If you combine it with Redirect, then it might automatically redirect somewhere.

But pathauto alone does nothing that you couldn't also do when creating the same alias manually.

Dave Reid’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I cannot confirm this behavior with a fresh install of core + Pathauto, so closing.