rusackas opened a new pull request, #37316:
URL: https://github.com/apache/superset/pull/37316

   ### SUMMARY
   Fixes a redirect loop causing 404 errors when accessing `/docs/databases/` 
directly.
   
   **The Problem:** The `.htaccess` file had a catch-all rewrite rule that 
redirected all `/docs/databases*` URLs to `/docs/configuration/databases`. 
However, since the databases documentation was moved to `/docs/databases/`, 
this old target path no longer exists.
   
   This caused confusing behavior:
   - Clicking a link to `/docs/databases` from within the site worked 
(client-side navigation)
   - Refreshing the page or pasting the URL directly would 301 redirect to 
`/docs/configuration/databases` → 404
   
   **The Fix:**
   - Remove the catch-all `docs/databases.*` rewrite rule from `.htaccess`
   - Update `druid.html` redirect to point to `/docs/databases` instead of 
`/docs/configuration/databases`
   - Update `docs/databases/yugabyte/` redirect to point to `/docs/databases`
   - Fix broken internal links in quickstart, faq, kubernetes, and timezones 
docs
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   **Before:** `/docs/databases` → 301 redirect → 
`/docs/configuration/databases` → 404
   **After:** `/docs/databases` → 200 OK (loads database overview page)
   
   ### TESTING INSTRUCTIONS
   1. Build and serve docs locally: `cd docs && npm run build && npm run serve`
   2. Navigate to `http://localhost:3000/docs/databases` directly in browser
   3. Verify the page loads correctly without redirecting
   
   ### ADDITIONAL INFORMATION
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   🤖 Generated with [Claude Code](https://claude.ai/code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to