Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b151712
Expand Navigation docs
amirhhashemi Feb 6, 2025
a16ba88
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 6, 2025
e053840
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 6, 2025
1cf36b1
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 7, 2025
c059740
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 7, 2025
ecce078
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 7, 2025
95c4fed
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 7, 2025
66269be
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 7, 2025
ac6cf91
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 7, 2025
b2ab9ae
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 7, 2025
7a7127d
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 7, 2025
b616e7a
update
amirhhashemi Feb 7, 2025
209b5c2
update
amirhhashemi Feb 7, 2025
46b600c
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 7, 2025
ce9542f
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 7, 2025
9a118ed
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 7, 2025
ffc069e
update
amirhhashemi Feb 7, 2025
82911a8
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 7, 2025
3183c0a
Update src/routes/solid-router/concepts/navigation.mdx
amirhhashemi Feb 8, 2025
445314c
add callout
amirhhashemi Feb 8, 2025
aeb29e5
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 10, 2025
e654bab
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 13, 2025
7bcf0e4
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 13, 2025
c49accf
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 13, 2025
93f3aef
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 13, 2025
f513dcd
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 16, 2025
25b3341
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 16, 2025
dcfc501
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 16, 2025
d28cf79
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 18, 2025
053da8b
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 18, 2025
3e492a9
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 18, 2025
dcfa2ea
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 18, 2025
eb4c92b
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 18, 2025
cd379a8
update
amirhhashemi Feb 18, 2025
e0b2d76
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 18, 2025
c0f374e
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 18, 2025
f8c554c
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 18, 2025
148d9f7
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 25, 2025
df2b9e0
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 25, 2025
070f0d7
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 26, 2025
ca4f7a7
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Feb 26, 2025
e5855f4
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Mar 4, 2025
08550b5
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Mar 4, 2025
a97979e
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Mar 6, 2025
47d983e
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Mar 7, 2025
195025c
Merge branch 'main' into expand-navigation-docs
kodiakhq[bot] Mar 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 5 additions & 21 deletions src/routes/solid-router/concepts/navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,15 @@
title: "Navigation"
---

Solid Router provides several ways to navigate between routes:
In Solid Router, standard HTML [`<a>` elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) trigger [soft navigation](/solid-router/reference/components/a#soft-navigation).
Solid Router also provides these options for navigating between routes:

- Using the native [`<a>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a).
- Using the [`<A>` component](/solid-router/reference/components/a).
- Using the [`useNavigate` primitive](/solid-router/reference/primitives/use-navigate).
- Using the [`redirect` function](/solid-router/reference/response-helpers/redirect).
- The [`<A>` component](/solid-router/reference/components/a).
- The [`useNavigate` primitive](/solid-router/reference/primitives/use-navigate).
- The [`redirect` function](/solid-router/reference/response-helpers/redirect).
Comment thread
LadyBluenotes marked this conversation as resolved.
Outdated

This page provides an overview of these options.
Comment thread
amirhhashemi marked this conversation as resolved.
Outdated

## `<a>` element

The standard HTML `<a>` element is the universal way to create links in an application.
In Solid Router, the `<a>` element triggers [soft navigation](/solid-router/reference/components/a#soft-navigation).

```tsx
function Navbar() {
return (
<nav>
<a href="/">Home</a>
<a href="/login">Login</a>
</nav>
);
}
```

## `<A>` component

The `<A>` component extends the native `<a>` element by automatically applying the base URL path and, additionally, supports relative paths.
Expand Down