Skip to content

Commit

Permalink
query and hash prefixes (? and #) are now included automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
jerith666 committed Oct 29, 2018
1 parent 6b06e3b commit f064b5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ queryFor : AlbumBootstrap -> String
queryFor model =
let
queryForPos pos =
Maybe.withDefault "" <| Maybe.map (\p -> "?s=" ++ String.fromFloat p) pos
Maybe.withDefault "" <| Maybe.map (\p -> "s=" ++ String.fromFloat p) pos
in
case model of
Sizing _ _ _ _ ->
Expand Down Expand Up @@ -838,8 +838,7 @@ hashForAlbum model albumPage parents =

hashFromAlbumPath : AlbumBootstrap -> List String -> List AlbumList -> String
hashFromAlbumPath model titles parents =
"#"
++ String.concat
String.concat
(List.intersperse "/"
(List.map
percentEncode
Expand Down

0 comments on commit f064b5b

Please sign in to comment.