Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CMEONE committed Mar 10, 2021
1 parent 5cfb528 commit 093a9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ A route is the end of the URL. The route can either be `/` or start with a `#`.
```

##### Redirects
The `tApp.redirect(path)` function redirects the URL to `path`. The `path` can be relative (`#/`) or absolute (`https://www.example.com/`).
The `tApp.redirect(path, title = document.title)` function redirects the URL to `path` with title `title` (defaults to current page title). The `path` can be relative (`#/`) or absolute (`https://www.example.com/`).
```javascript
tApp.route("/", function(request) {
tApp.redirect("#/");
Expand Down

0 comments on commit 093a9d9

Please sign in to comment.