Change webapp url paths

Don't use `#`, because many people find it awkward. Now "normal" urls
are used and elm takes care to not issue a server request when these
change.
This commit is contained in:
Eike Kettner
2019-12-30 22:28:02 +01:00
parent b15b9cc217
commit 36a6fdd746
5 changed files with 44 additions and 29 deletions

View File

@ -188,7 +188,7 @@ urlInfoMessage flags model =
]
, p []
[ text "This source defines URLs that can be used by anyone to send files to "
, text "you. There is a web page that you can share or tha API url can be used "
, text "you. There is a web page that you can share or the API url can be used "
, text "with other clients."
]
, dl [ class "ui list" ]
@ -196,7 +196,7 @@ urlInfoMessage flags model =
, dd []
[ let
url =
flags.config.baseUrl ++ "/app#/upload/" ++ model.source.id
flags.config.baseUrl ++ "/app/upload/" ++ model.source.id
in
a [ href url, target "_blank" ] [ code [] [ text url ] ]
]