stack/docs/src/components
Madison cf7a540e1a
fix links and redirect issues on components index page (#796)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

Fixes broken links on /docs/{platform}/components pagse to now work, and
fixes redirect when switching off of react-like platforms when on
components or sdk pages.
<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Fixes broken links and redirect issues on components index page by
updating paths and improving URL handling logic.
> 
>   - **Behavior**:
> - Fixes broken links on `/docs/{platform}/components` pages by
updating relative paths in `index.mdx`.
> - Corrects redirect logic when switching platforms on components or
SDK pages in `docs-layout-router.tsx`.
>   - **Functions**:
> - Adds `joinUrlPath()` in `generate-platform-navigation.js` to safely
join URL path segments.
> - Updates `pageExistsForPlatform()` in
`generate-platform-navigation.js` to handle `/index.mdx` paths.
>   - **Misc**:
> - Adds type safety checks for platform handling in
`docs-layout-router.tsx`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 0a5337de8c. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-07-23 19:13:30 -07:00
..
api Docs updates (#753) 2025-07-11 10:00:02 -07:00
chat Revert back to Gemini 2.0 Flash 2025-07-18 10:01:00 -07:00
homepage Docs updates (#753) 2025-07-11 10:00:02 -07:00
layout Widget builder 2025-07-16 19:30:36 -07:00
layouts fix links and redirect issues on components index page (#796) 2025-07-23 19:13:30 -07:00
mdx Adds oauth providers, fixes bottom page navigation with mobile suppor… (#726) 2025-07-08 19:51:24 -07:00
sdk fix sdk linking issues (#783) 2025-07-21 23:59:16 -07:00
stack-auth Docs updates (#753) 2025-07-11 10:00:02 -07:00
ui Adds oauth providers, fixes bottom page navigation with mobile suppor… (#726) 2025-07-08 19:51:24 -07:00
apple-secret-generator.tsx Adds oauth providers, fixes bottom page navigation with mobile suppor… (#726) 2025-07-08 19:51:24 -07:00
icons.tsx Docs updates (#753) 2025-07-11 10:00:02 -07:00
page-client.tsx Adds oauth providers, fixes bottom page navigation with mobile suppor… (#726) 2025-07-08 19:51:24 -07:00
pageview-dynamic.tsx [Docs] posthog Integration (#761) 2025-07-14 13:49:36 -05:00
pageview.tsx [Docs] posthog Integration (#761) 2025-07-14 13:49:36 -05:00
platform-redirect.tsx Docs updates (#753) 2025-07-11 10:00:02 -07:00
posthog-provider.tsx [Docs] posthog Integration (#761) 2025-07-14 13:49:36 -05:00
prop-table.tsx New docs (#698) 2025-06-20 13:30:01 -07:00
steps.tsx New docs (#698) 2025-06-20 13:30:01 -07:00
tabs.tsx New docs (#698) 2025-06-20 13:30:01 -07:00