redlib icon indicating copy to clipboard operation
redlib copied to clipboard

🐛 Bug Report: Short URLs not redirecting

Open sigaloid opened this issue 1 year ago • 0 comments

Recent changes have broken the canonical_path function. Short URLs (http://localhost:8080/17krzvz) don't work

curl -vv "http://localhost:8080/17krzvz"
* Host localhost:8080 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:8080...
* Connected to localhost (::1) port 8080
> GET /17krzvz HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.6.0
> Accept: */*
> 
< HTTP/1.1 302 Found
< content-type: text/html
< location: /17krzvz
< referrer-policy: no-referrer
< x-content-type-options: nosniff
< x-frame-options: DENY
< content-security-policy: default-src 'none'; font-src 'self'; script-src 'self' blob:; manifest-src 'self'; media-src 'self' data: blob: about:; style-src 'self' 'unsafe-inline'; base-uri 'none'; img-src 'self' data:; form-action 'self'; frame-ancestors 'none'; connect-src 'self'; worker-src blob:;
< strict-transport-security: max-age=604800
< content-length: 49
< date: Wed, 02 Oct 2024 18:25:38 GMT
< 
* Connection #0 to host localhost left intact
Redirecting to <a href="/17krzvz">/17krzvz</a>...⏎                                                        

sigaloid avatar Oct 02 '24 18:10 sigaloid