Jason Culverhouse
|
036bbfbaf9
|
Remove double decode of URI (#8068)
At this point the URI is already decoded and decoding again will alter the uri
```
let link = req.query.u
```
example of a link that has `%` encoding... the initial redirect link is properly encoded.
```
curl -vv "https://go.bsky.app/redirect?u=https%3A%2F%2Fsurf.social%2Ffeed%2Fsurf%252Fcustom%252F01jpz5vyjwvw5yaa8bfkha5xn4"
```
The result is "double decoded", the proper link in this case should be `https://surf.social/feed/surf%2Fcustom%2F01jpz5vyjwvw5yaa8bfkha5xn4`
```
<html><head><meta http-equiv="refresh" content="0; URL='https://surf.social/feed/surf/custom/01jpz5vyjwvw5yaa8bfkha5xn4'" /><style>:root { color-scheme: light dark; }</style></head></html>
```
After changes:
```
curl -s "http://localhost:3000/redirect?u=https%3A%2F%2Fsurf.social%2Ffeed%2Fsurf%252Fcustom%252F01jpz5vyjwvw5yaa8bfkha5xn4"
<html><head><meta http-equiv="refresh" content="0; URL='https://surf.social/feed/surf%2Fcustom%2F01jpz5vyjwvw5yaa8bfkha5xn4'" /><style>:root { color-scheme: light dark; }</style></head></html>
```
|
2025-03-28 16:50:16 -07:00 |
|
Hailey
|
52429b651f
|
blink: use meta for redirect (#8031)
* try using meta
* color scheme
* revert test change
* escape
|
2025-03-20 15:08:54 -07:00 |
|
Hailey
|
0e658dbdfd
|
blink: redirect on root route (#8029)
* make root route redirect to 301
* use config
* end
* add a comment
|
2025-03-20 14:50:15 -07:00 |
|
Hailey
|
61a14043e5
|
add to blink (#7788)
|
2025-02-24 13:59:57 -08:00 |
|
Hailey
|
d5ca95233e
|
offer a json response for grabbing short links (#4671)
|
2024-06-27 11:31:24 -07:00 |
|
Hailey
|
b75341314c
|
tweak app clip AASA (#4641)
|
2024-06-25 10:34:17 -07:00 |
|
devin ivy
|
55812b0394
|
Bsky short link service (#4542)
* bskylink: scaffold service w/ initial config and schema
* bskylink: implement link creation and redirects
* bskylink: tidy
* bskylink: tests
* bskylink: tidy, add error handler
* bskylink: add dockerfile
* bskylink: add build
* bskylink: fix some express plumbing
* bskyweb: proxy fallthrough routes to link service redirects
* bskyweb: build w/ link proxy
* Add AASA to bskylink (#4588)
---------
Co-authored-by: Hailey <me@haileyok.com>
|
2024-06-21 12:41:06 -04:00 |
|