zyachel / quetre

A libre front-end for Quora
https://quetre.iket.me
GNU Affero General Public License v3.0
435 stars 29 forks source link

Doesn't work for french version #14

Closed stemy2 closed 1 year ago

stemy2 commented 2 years ago

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.

zyachel commented 2 years ago

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).

abdelkd commented 2 years ago

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 :)

zyachel commented 1 year ago

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.