quetre icon indicating copy to clipboard operation
quetre copied to clipboard

Doesn't work for french version

Open stemy2 opened this issue 2 years ago • 2 comments

Hello,

I'd like to use it with the french version of quora, but it doesn't work since it uses the "fr" subdomain and give me a http 404 error.

stemy2 avatar Jul 04 '22 14:07 stemy2

hey there!

All routes involving subdomains(primarily language-specific routes and spaces) are not implemented yet.

I have a vague idea on how I'll implement them.
I'm thinking of something like this:
https://fr.quora.com/A-quoi-ressemblerait-la-4D redirects to https://quetre.herokuapp.com/fr/A-quoi-ressemblerait-la-4D.

But that'll require extra support from redirector extensions.

Or alternatively, I could manually parse any link a user pastes. for example: if a user appends the link after quetre.herokuapp.com/?link=(like this: https://quetre.herokuapp.com/?link=https://fr.quora.com/A-quoi-ressemblerait-la-4D), then I could do some checks and fetch the resource.

In any case, I'll only be able to implement the functionality when I get some time(possibly, by next month).

zyachel avatar Jul 04 '22 15:07 zyachel

https://fr.quora.com/A-quoi-ressemblerait-la-4D redirects to https://quetre.herokuapp.com/fr/A-quoi-ressemblerait-la-4D. I added this to my PR :)

abdelkd avatar Jul 07 '22 22:07 abdelkd

the feature is now implemented. you need to pass a query param(e.g.: ?lang=ar) to see answer in another language. Or alternatively, you can choose language while searching.

zyachel avatar Jan 07 '23 18:01 zyachel