Closed Najrim closed 5 years ago
I am interested to see if this PR will be accepted, because some other websites would require such a workaround. I think @j0k3r didn't want to do such modifications in the core code of graby.
Maybe there is a way to include them not in the core source code, but in graby's configuration on wallabag (maybe here?. I think only @j0k3r will be able to tell us.
Yeah that's a good question.
I would like to work on a way to use a configuration to add or remove this kind of rewrite_url
pattern.
Or maybe this should goes into site config instead of hard coded in the coded.
A configuration of graby for that might be a good idea but what if an other website than wallabag wants the same behavior for lesswrong
? It'll have to add it inside the configuration of graby too.
What do you think @fivefilters?
Yes, I agree @j0k3r. I think it'd be better if it was handled in the site config file. I've been thinking about this too as there are sites where adding a parameter saves an uncessary redirect or avoids a GDPR/cookie wall from being displayed. So perhaps in addition to rewrite_url, we could also have a way to add/remove query string parameters.
Alright, there seems to be consensus that this should be in a configuration file instead so I will close the pull request for now. My reason for proposing the change is just personal convenience. I'm not self-hosting at the moment so I can't fix this locally.
See comment on commit. Based on issue #3767 in Wallabag repo.