-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean_urls: true by default? #24
Comments
I don't think having it on by default is a good idea, my reasoning is that as a new user to Roots I'd expect the development server to behave as any static site would, i.e. without clean URLs. |
word, thanks for weighing in. that was my original thinking too. the only reason i'm in the other camp now is since using netlify -- i have no problem that they automatically clean up the URLs. it should be noted that in any case, i could go either way |
I think it's important not to tie Roots too closely to Netlify, even if just in discussion, as it might cause confusion and some might get the idea that one is required for the other to work. That's just my thinking of course. Roots is @Jenius' baby so ultimately he'll decide :P |
Point taken On Thu, Apr 30, 2015 at 8:14 AM, Declan de Wet notifications@github.com
|
I think that as a server (having nothing to do with roots), it's reasonable to enable "clean urls" by default. The reason why is that file extensions are nearly meaningless in URIs, they're a naming convention used to indicate content-type on file systems which don't support any other method of indicating content-type. But URIs are implementation-independent and represent resources, not files. They have their own method of indicating what format the data is to be interpreted in (the A single resource can even be available in a variety of formats. For example, I could request This duality wouldn't be possible (or at least wouldn't make any sense) if those URIs had file extensions in them. You'd have to request ** Twitter doesn't actually support this because they treat machines as second-class citizens and prevent them from having easy access to public data - preferring to force them to go through their separate API. |
a good point @slang800. thanks for adding to the convo |
Yeah really interesting perspective @slang800, thanks for weighing in here. These are great points from everyone. I think initially I was swinging towards no to defaulting it, but after reading everyone's perspectives I'm now a little more on the yes side. Why? Because "any other static site" is not really a default, per-se. Any site that goes up must have a server written for it, so it's up to the server how the file extensions are handled, really. It just turns out most static file servers include the file extensions for all files. Our clean url option strips the extensions only for html files, simple because this is a server made specifically for static sites. I see no reason why anyone would ever want the extension on an html file on a static site, which is, as Kyle mentioned, why you switch on clean urls pretty much every time. As long as we have the re-routing of So I'd go with yes for this. Let's make it happen. |
I find myself setting this to true every time and others seem to expect it as well. should we just make it default? jescalan/roots#634 (comment)
cc @Jenius @declandewet
The text was updated successfully, but these errors were encountered: