Fix: Change route from /admin to / to avoid Nextcloud conflicts

- Changed route URL from /admin to / (root path)
  - /admin was conflicting with Nextcloud built-in admin routes
  - Now uses apps/analyticshub/ instead
- Changed route name from admin#index to page#index
  - Follows Nextcloud naming conventions
- Updated info.xml navigation
  - Points to analyticshub.page.index
  - Removed <settings> section (can cause conflicts)
- Updated AdminController
  - Added request path to diagnostic output
  - Better styling for simple HTML page

The route was conflicting with Nextcloud's admin system.
New URL: https://teamworkapps.com/index.php/apps/analyticshub/
This commit is contained in:
WLTBAgent
2026-02-13 20:21:40 +00:00
parent d4f96cc28b
commit 4b684d101a
3 changed files with 17 additions and 11 deletions

View File

@@ -10,10 +10,10 @@ namespace OCA\AnalyticsHub;
return [
'routes' => [
// Admin route - simple GET only
// Admin route - use root path instead of /admin
[
'name' => 'admin#index',
'url' => '/admin',
'name' => 'page#index',
'url' => '/',
'verb' => 'GET',
'requirements' => [],
],