Skip to content

Fix search engine redirection issue - #18

Merged
dndquynh merged 4 commits into
masterfrom
update-redirect
Sep 4, 2020
Merged

dndquynh merged 4 commits into
masterfrom
update-redirect

Conversation

@dndquynh

@dndquynh dndquynh commented Sep 1, 2020

Copy link
Copy Markdown
Collaborator

Firefox prioritizes search engine over URL when using the address bar, which will use the search engine to "search" for the go link (go/example) instead of using the URL "http://go/example".

This fix aims to handle these default search engines: Google, Bing, Yahoo, Baidu, DuckDuckGo, Ecosia

@dndquynh
dndquynh requested a review from hieuhqpham September 1, 2020 07:08

@hieuhqpham hieuhqpham left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A couple of feedback. Please fix.

Comment thread linkify.js Resolved
Comment thread linkify.js Resolved
Comment thread linkify.js Resolved
Comment thread linkify.js Resolved
@dndquynh
dndquynh requested a review from hieuhqpham September 1, 2020 23:15

@hieuhqpham hieuhqpham left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. Please make sure to address edge cases before merging.

@hieuhqpham hieuhqpham added the bug Something isn't working label Sep 2, 2020
@hieuhqpham hieuhqpham linked an issue Sep 2, 2020 that may be closed by this pull request
@mzhang28

mzhang28 commented Sep 2, 2020

Copy link
Copy Markdown
Collaborator

Wait, doesn't this cause problems with trying to visit unrelated URLs containing "=go/"?

@hieuhqpham

Copy link
Copy Markdown
Collaborator

Wait, doesn't this cause problems with trying to visit unrelated URLs containing "=go/"?

You are right. I missed that part in my review. cc: @dndquynh

Comment thread linkify.js Resolved
@mzhang28

mzhang28 commented Sep 2, 2020

Copy link
Copy Markdown
Collaborator

One other option is to use the omnibox APIs (in firefox) (in chrome) rather than using "go" as a hostname, unless the intention is to support other applications other than the browser in which case a local DNS server might be a better idea

@dndquynh

dndquynh commented Sep 3, 2020

Copy link
Copy Markdown
Collaborator Author

One other option is to use the omnibox APIs (in firefox) (in chrome) rather than using "go" as a hostname, unless the intention is to support other applications other than the browser in which case a local DNS server might be a better idea

@iptq Thank you for the inputs. I want to go with the current option, otherwise, we might have to redesign the app with Omnibox APIs. For local DNS server, I talked to @hieupham7127 and he mentioned that we aren't looking to support beyond browser for now.

@dndquynh
dndquynh requested a review from hieuhqpham September 3, 2020 10:27
@dndquynh
dndquynh merged commit c0dfb29 into master Sep 4, 2020
@hieuhqpham
hieuhqpham deleted the update-redirect branch September 5, 2020 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firefox extension doesn't seem to work

3 participants