Skip to content

Commit 093a9d9

Browse files
committed
Update docs
1 parent 5cfb528 commit 093a9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ A route is the end of the URL. The route can either be `/` or start with a `#`.
131131
```
132132

133133
##### Redirects
134-
The `tApp.redirect(path)` function redirects the URL to `path`. The `path` can be relative (`#/`) or absolute (`https://www.example.com/`).
134+
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/`).
135135
```javascript
136136
tApp.route("/", function(request) {
137137
tApp.redirect("#/");

0 commit comments

Comments
 (0)