-
Notifications
You must be signed in to change notification settings - Fork 64
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
Allow custom rules of what is considered Internal/External URL #48
Comments
Is this not the solution for you? case urlRequest of
Browser.Internal url ->
if isReallyInternal url then
...
else
...
Browser.External href ->
... |
It's just that whole Also writing that |
+1 UrlChangeRequested request ->
case request of
Internal location ->
let
-- Checking pseudo-external urls (like /api/*, /auth/*, etc)
cmd =
if location.path == Config.urlBase then
location
|> locationToRoute
|> Redirect
|> dispatch
else
location
|> Url.toString
|> External
|> UrlChangeRequested
|> dispatch
in
( model, cmd )
External url ->
( model, Nav.load url ) |
Not every application takes control of whole domain. If application lives e.g. under path
https://example.com/myapp
then URLhttps://example.com/otherapp
needs to be considered to be an external url.The text was updated successfully, but these errors were encountered: