|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This issue started with f3d1bc5f9d86300c42d6a57a9f60bd508bdf9bb4:
Use URI to encode the url for random_search
I'll use this for everything eventually. Before this search terms
like "rocky mountains" would break, also segments, query_keywords
makes it easier.
Now the problem was that query_keywords forms urls like
`?nature+water' which totally makes sense & this is why it's logical
error. I want to form it in `?nature,water' format so first we use
`join' to form `nature,water' & then use URI::Encode to encode it
correctly & then use query_keywords to form $url.
We have to use URI::Encode because otherwise we would end up with same
problem that I tried fixing in
f3d1bc5f9d86300c42d6a57a9f60bd508bdf9bb4. "rocky mountains" would've
been seperated by space.
Now it's all good, every space will be encoded & keywords will be
seperated by `,' which is what Unsplash Source wants.
|