Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Documents not working when configured as defaultapp in config.php (Redirection loop in browser) #657

Open
civantos opened this issue Aug 5, 2016 · 0 comments

Comments

@civantos
Copy link

civantos commented Aug 5, 2016

Ninja edit for adding versions information:
Nextcloud 9.0.53 (stable)
Documents 0.12.0
Server version: Apache/2.4.23 (Debian)
PHP 7.0.9-1+b2 (cli) ( NTS )

I've been testing both, owncloud and nextcloud today and getting an error redirection when configuring Documents as defaultapp to be shown after login.

-- config.php --
'defaultapp' => 'documents',

I've been testing some fixes and I've got a working fix (at least as far as I have had time to test the app) changing this line in this file:

-- appinfo/routes.php --

//documents
        ['name' => 'document#index', 'url' => 'index', 'verb' => 'GET'],

to


//documents
        ['name' => 'document#index', 'url' => '/', 'verb' => 'GET'],

I'm not pretty sure if it's purely a code bug or some misconfiguration in the default .htaccess (mod_rewrite) included in the projects.

Regards,

Javier Civantos

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant