Document how to disable login page SEO

This commit is contained in:
Oscar Admin Contributors 2026-12-03 18:49:50 -05:00
parent a67ca468ef
commit 31a14f6ddd

View file

@ -165,6 +165,20 @@ location /admin/ {
} }
``` ```
### SEO / discoverability
The login page is intentionally indexable and includes basic SEO metadata plus a source-repo link to help people find the project. If you **do not** want the login page indexed, edit `login.php` and change the `admin_page(...)` SEO options:
```php
], [
'indexable' => false, // was true
// 'description' => '...',
// 'repo_url' => 'https://git.claytonia.net/Clarth/oscar-admin',
]);
```
Authenticated dashboard pages remain `noindex,nofollow` by default.
## Project Structure ## Project Structure
```text ```text