This is expected behavior. The semicolon character is reserved in URLs, and it requires escaping if it is used. <br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 25, 2016 at 12:05 Cao, Jiannan via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="gmail_msg">
<a href="http://host/book;id=1/page;2/" rel="noreferrer" class="gmail_msg" target="_blank">http://host/book;id=1/page;2/</a><br class="gmail_msg">
<br class="gmail_msg">
this URL is a valid URL, but URLComponents will ruin it with %3B<br class="gmail_msg">
<a href="http://host/book%3Bid=1/page%3B2/" rel="noreferrer" class="gmail_msg" target="_blank">http://host/book%3Bid=1/page%3B2/</a><br class="gmail_msg">
<br class="gmail_msg">
Since Swift Server is coming out, this bug should be solved.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
swift-evolution mailing list<br class="gmail_msg">
<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a><br class="gmail_msg">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="gmail_msg">
</blockquote></div>