Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Conversation

@return42
Copy link
Contributor

@return42 return42 commented Apr 12, 2021

What does this PR do?

Since #2656 has been merged, we have issues with:

  • saving the preferences will cause an error (blank page)
  • https-scheme missing in preferences-page

Why is this change important?

How to test this PR locally?

Open preferences,

  • check cookie URL
  • click on the "save" button.

Related issues

closes: #2740

Erroneously commit 87e4c47 droped the 302 redirect.

Signed-off-by: Markus Heiser <[email protected]>
This patch is an addition to PR #2656 which removed all usage of `base_url` from
the templates, except one was forgotten in the cookie URL of the preferences.

closes: 2740

Signed-off-by: Markus Heiser <[email protected]>
@return42
Copy link
Contributor Author

return42 commented Apr 12, 2021

The problems with PR #2656 had several causes and the discussion is a little bit spread

To summarize: PR #2656 fixes a issue with a function which generates URLs and is used in several HTML templates. But PR #2656 has a bug and as additional, there have been left a wrong URL generating in the HTML template. Complex constellation and hard to describe with my poor english / to shorten up:

PR #2656 fixes a real bug and this PR #2760 polish up to get rid of followup issues (discussed in the comments linked above).

BBaoVanC added a commit to BBaoVanC/searx that referenced this pull request Apr 15, 2021
BBaoVanC added a commit to BBaoVanC/searx that referenced this pull request Apr 15, 2021
@BBaoVanC
Copy link
Contributor

Finally got around to testing this, and it looks good! It works on local testing and on my public instance, including on my fork (see the merge-2760 branch. My merge-2760 branch also has #2716 merged and the suggestions also still work.

@return42
Copy link
Contributor Author

@BBaoVanC thanks million times for your efforts! ..

PR #2656 made some central changes in the way URLs are generated (the method before was a little bit buggy and inconsistent), this has had an impact on many positions where URLs are used. Your test has now convinced me that I have found and repaired all the positions.

BTW: as normal contributors (like me and you), we are also able to approve a PR at github, this signals the maintainers, that a PR is well tested by the users.

Copy link
Contributor

@BBaoVanC BBaoVanC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@return42 return42 closed this Apr 17, 2021
@return42 return42 deleted the fix-preference-save branch April 17, 2021 15:23
@return42
Copy link
Contributor Author

@BBaoVanC @unixfox / sorry, github did close PR #2760 and #2716 when I made some house housekeeping in my repository. Maintainers should be able to restore the branch (and reopen PR).

@kvch
Copy link
Member

kvch commented Apr 18, 2021

Well, I cannot reopen the PR using GH. I assume you can recreate the branch and reopen the PR.

@unixfox
Copy link
Member

unixfox commented Apr 19, 2021

@return42 could you recreate the PRs then please?

@return42 return42 restored the fix-preference-save branch April 19, 2021 07:05
@return42
Copy link
Contributor Author

FYI: restored branch

@asciimoo asciimoo reopened this Apr 21, 2021
Copy link
Member

@asciimoo asciimoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@asciimoo asciimoo merged commit 28b3975 into searx:master Apr 23, 2021
@return42 return42 deleted the fix-preference-save branch April 26, 2021 08:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

https-scheme missing in preferences-page

5 participants