Closed mikewest closed 5 years ago
What you did there seems fine as long as you control all the relevant fields (or they come from a parsed URL).
Except that path is a list so that needs to be a little different.
Except that path is a list so that needs to be a little different.
Ah. Yes. Editing the original to correct.
I'd suggest being a bit more pedantic about the URL generation algorithm. Perhaps something like:
@annevk might have opinions about whether it's better to generate URLs this way or by feeding strings into the parser (if the latter, you'll need to serialize the origin before parsing it). This seems clearer to me?