Skip to content

Conversation

@Coderxrohan
Copy link
Contributor

@Coderxrohan Coderxrohan commented Jan 5, 2026

Problem

The Tabs documentation shows an API tab even though Tabs does not provide API documentation.
Clicking this tab navigates to a non-existent API route, resulting in a 404 on the docs site.

Impact

Users end up on a broken page, which is confusing and gives the impression that the documentation is incomplete or incorrect.

Fixes

The API tab is now rendered only when API documentation is available (apiDocs is provided).
This prevents navigation to dead API routes while keeping existing behavior unchanged for components that do expose API docs.

Approach Used

I reviewed how the docs UI decides when to render the API tab and added a small conditional check so it only appears when API data exists. This keeps the fix minimal, safe, and limited to documentation logic.

Fixes #8388 ([v11] docs: API page for Tabs component in the docs returns a 404)

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

@melloware
Copy link
Member

looks liek you need npm run format

@melloware melloware merged commit f4019c4 into primefaces:master Jan 5, 2026
2 checks passed
@melloware melloware added this to the 10.9.8 milestone Jan 5, 2026
@melloware melloware added the Component: Documentation Issue or pull request is related to Documentation label Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Documentation Issue or pull request is related to Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v11] docs: API page for Tabs component in the docs returns a 404

2 participants