Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to access original URL in site config? (lotro.com) #7335

Open
HolgerAusB opened this issue Mar 13, 2024 · 0 comments
Open

Is there a way to access original URL in site config? (lotro.com) #7335

HolgerAusB opened this issue Mar 13, 2024 · 0 comments

Comments

@HolgerAusB
Copy link

Content related:

  • wallabag version: [e.g. 2.6.8] and FulltextRSS 3.9.13

Describe what's wrong:
lotro.com news provides it's game news in English, German and French language. The base URL for all versions is the same it just differs in the last three characters: -en or -de or -fr

The problem is that DE and FR versions are redirecting to /home if not set the appropriate locale either by cookie or url-parameter.

So I need access to the original URL which is sent to wallabag/FTR to concatenate something like that for lotro.com.txt:

single_page_link: concat( ORIG_URL , '?locale=de_DE')
if_page_contains: substring( ORIG_URL, string-length(ORIG_URL), -3)='-de'

single_page_link: concat( ORIG_URL , '?locale=fr_FR')
if_page_contains: substring( ORIG_URL, string-length(ORIG_URL), -3)='-fr'

body: //div[contains(@class, 'article-body')]

strip_id_or_class: legal-and-language
strip_id_or_class: footer-download
strip_id_or_class: footer

test_url: https://www.lotro.com/news/lotro-downtime-031324-de
test_url: https://www.lotro.com/news/lotro-downtime-031324-fr
test_url: https://www.lotro.com/news/lotro-downtime-031324-en

The English version is grabbed always, even when set a different locale.

For my own installation I just can set
http_header(cookie): locale=de_DE

But that won't work for french reading users. So I can't set this to the repo.

So the question is:
Is FTR or graby able to use the original URL with site-configs. That URL is unfortunately not part of the redirected page.

@j0k3r, @fivefilters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant