We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3475e5c commit 8d96c33Copy full SHA for 8d96c33
Source/ArtistsRouter.swift
@@ -32,9 +32,11 @@ extension Router {
32
case .Index:
33
return "/artists"
34
case .Show(let name):
35
- return "/artists/\(name)"
+ let escapedName = name.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLPathAllowedCharacterSet())!
36
+ return "/artists/\(escapedName)"
37
case .ShowTracks(let name, _):
- return "/artists/\(name)/tracks"
38
39
+ return "/artists/\(escapedName)/tracks"
40
}
41
42
0 commit comments