Skip to content

Routing Issue with paths with extensions #53

Description

@FossPrime

I have a symfony route that would handle the following url http://localhost:8000/myaction/generated.txt

gulp's server won't handle it and returns
Cannot GET /myaction/generated.txt

Seems to be related to the same issue I had with generator-grunt-symfony Where it would route .json requests
bezoerb/generator-grunt-symfony#205 (comment)

I'm looking into it, not as familiar as I was with grunt... any pointers?

UPDATE:
Culprit is clearly

if (!/\.\w{2,}$/.test(obj.pathname) || /\.php/.test(obj.pathname)) {

The solution I had used was to give php-proxy-middleware everything but browsersync and then modify app_dev.php to route based on whether a real file existed, similar to a lot of mod_rewrite rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions