diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-09-30 21:29:17 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-09-30 21:29:17 +0200 |
| commit | 7870b9aa5d32b5b3c938be205f9ba49fd4e4734f (patch) | |
| tree | 396bc3465617dbc584668b6722dd5d39af99dc7d /doc | |
| parent | f9433f13765ca6ec6aa5d2c34dd4d3c76d93c08a (diff) | |
| download | chawan-7870b9aa5d32b5b3c938be205f9ba49fd4e4734f.tar.gz | |
pager: improve rewrite-url semantics
Previously, it just changed the URL before loading the site; now it's
an actual redirect.
Technically, the previous behavior was more flexible, because it let you
apply siteconf rules exclusively for sites where you redirected from.
Practically, this was not very useful, and probably unexpected for
anybody trying to use the feature.
This also fixes a bug where the loader filter would be set for the
original page, so you couldn't switch from https to http, etc.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/config.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/config.md b/doc/config.md index cde29243..a69e16f5 100644 --- a/doc/config.md +++ b/doc/config.md @@ -714,8 +714,9 @@ handling rules.</td> <tr> <td>rewrite-url</td> <td>JavaScript function</td> -<td>A JavaScript function Chawan will pass the URL to. If a new URL is -returned, it will replace the old one.</td> +<td>A JavaScript function Chawan will pass the site's URL object to. If +a new URL is returned, or the URL object is modified in any way, Chawan +will transparently redirect the user to this new URL.</td> </tr> <tr> |