code-server icon indicating copy to clipboard operation
code-server copied to clipboard

External URLs using wrong URL from cache

Open code-asher opened this issue 3 years ago • 1 comments

I found there's a conflict between this feature and url displayed in open external uri dialog. If you open an external uri for the first time then the domain of it will be resolved to cache in map data structure. Like https://www.w3schools.com/c/c_structs.php image

For the next time if you open a different uri with the same domain Like https://github.com/coder/code-server/issues it will be resolved as the last uri which has been cached. image

The uri displayed here is not correct

Before there's no resolvers registered by default so external uri is not resolved but after this feature added, cache will take effect image

Hope there's a solutaion for this. Thank you!

Originally posted by @ericzhucode in https://github.com/coder/code-server/issues/5624#issuecomment-1430673559

code-asher avatar Feb 16 '23 20:02 code-asher

I am not sure if this is still an issue but we should try reproducing in Codespaces if it is.

code-asher avatar Sep 19 '24 21:09 code-asher