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

adding fallback? #1

Open
kodeine opened this issue Apr 17, 2019 · 1 comment
Open

adding fallback? #1

kodeine opened this issue Apr 17, 2019 · 1 comment

Comments

@kodeine
Copy link

kodeine commented Apr 17, 2019

is there a support to add fallback if not android it goes to default web url?

@guessi
Copy link
Owner

guessi commented Apr 18, 2019

@kodeine

Nice to know your interested in this project.

Unfortunately, it does not have global fallback URL design by now,
and Yes, it is possible, but not yet implemented.

Currently, it only support fallback per keyword, with special defined prefixes,

Let's say we have three keywords defined,

  • foo: http://other.domain/bar
  • iosfoo: http://other.domain/ios
  • androidosfoo: http://other.domain/android

if a request comes in, says http://my.domain/foo,
it would first trying to lookup foo in database, and set http://other.domain/bar as result (keyword-based fallback URL), then trying to detect the device type, and set the result base on device type detected.

Expected Results:

iOS user will be redirected to:http://other.domain/ios
Android will be redirected:http://other.domain/android
for the rest of others, redirect to http://other.domain/bar

You may find the logic design in the source code,

it is always welcome to have pull-request 👍

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

No branches or pull requests

2 participants