Why replace _ in url?
See original GitHub issueHi, @FlorianRappl Why are you replacing underscores in the url with nothing?
[TestMethod]
public void TestMethod2()
{
//
Url url = new Url("https://will_be_replaced.but.why/");
//
Assert.AreEqual("https://will_be_replaced.but.why/", url.Href);
}
gives
Assert.AreEqual failed. Expected:<https://will_be_replaced.but.why/>. Actual:<https://willbereplaced.but.why/>.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
PHP - How to replace special characters for url
I am trying to convert special characters (eg. + , / , & , % ) which I will use them for a...
Read more >location: replace() method - Web APIs - MDN Web Docs
The replace() method of the Location interface replaces the current resource with the one at the provided URL. The difference from the ...
Read more >hx-replace-url Attribute
The hx-replace-url attribute allows you to replace the current url of the browser location history. The possible values of this attribute are:.
Read more >Replace URL
Replace URL replace the specified words with new words in the address bar. 1. Please specify old words(or regular expressions) and new words ......
Read more >How To Replace URLs In WordPress
Now let's get started replacing the URLs in your WordPress website. To begin, go to the plugin settings located at Tools>Better Search Replace....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ushenkodmitry see WHATWG URL specification. Also Google has a nice paragraph about why URLs with underscores will be downrated.
Also please read the Wikipedia entry on host names:
Agreed - I think we need to tolerate this. Fixed as PR #446.