Problem with stylesheets
Opened this issue · 1 comments
Hi @arunoda,
Experimenting with another package of yours :)
I use Picker to enable server-side routing for my app. The routing functionality works as expected, but there's a problem related to stylesheets:
Resource interpreted as Stylesheet but transferred with MIME type text/html
It looks like the css files are not sent to client properly anymore, which is quite strange.
Here is my server-side routing implementation:
https://gist.github.com/anonymous/79e2f02e4db22d8d8890
@arunoda: I realized this issue may be related to how I structure the route path.
At the moment my path looks like this: /:shortURL
. When I print out the shortURL
param, I see this in server console:
1adacaee373030eab7f9aee26f9049968d7712f6.css
So properly the path /:shortURL
interfered with how resources are sent from server to client.
One quick fix I can think of is changing the path to something like /go/:shortURL
. However, given the context that this is a URL shortening app, it doesn't look like the ideal fix :).
And one more information: I had the similar implementation when I was using Iron Router, and I didn't encounter this problem.