Skip to content

Commit

Permalink
πŸ“ Acorn routing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Jun 3, 2024
1 parent 93161b8 commit fc0a087
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acorn/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ See [Laravel's routing documentation](https://laravel.com/docs/10.x/routing) to

Acorn allows you to use Laravel's routing functionality on your WordPress sites, and will automatically handle Laravel routes defined in the `routes/web.php` file if it exists.

Routes are an easier way to implement virtual pages in WordPress.

::: warning
Routes are an easier way to implement virtual pages in WordPress. Since registered routes are dynamic, WordPress is not aware of how to handle some functionality including such as setting the canonical URL, setting the `<title>`, and adding SEO-related meta data. Make sure to take this into consideration when adding routes to your site.
Since registered routes are dynamic, WordPress is not aware of how to handle some functionality such as setting the canonical URL, setting the `<title>`, and adding SEO-related meta data. Make sure to take this into consideration when adding routes to your site.
:::

## Basic routing example
Expand Down

0 comments on commit fc0a087

Please sign in to comment.