I’ve read the documentation, and it looks like some edge cases might be different (trailing slashes, etc.), but it’s not clear to me what the main difference between these two method is. Do the terms Component and Extension have special meaning in the URL world that people other than me understand?
I’ve read the documentation, and it looks like some edge cases might be different
Share
The path extension is for adding things like
.htmlto the URL, and the path component is for adding things like/news/local. The documentation for path extension:So
http://hello.com/news/would becomehttp://hello.com/news.htmlThe docs for path component:
So
http://hello.com/news/would becomehttp://hello.com/news/htmlHere’s a quick test:
Output: