gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com
MIT License
714 stars 146 forks source link

Links not working via connect #151

Closed jrock2004 closed 9 years ago

jrock2004 commented 9 years ago

Using connect and my links are not working. I noticed when the server starts it adds a # sign to the URL and not sure why.

connect: {
        server: {
            options: {
                port: '9001',
                base: 'build/',
                protocol: 'http',
                hostname: 'localhost',
                livereload: true,
                open: {
                    target: 'http://localhost:9001',
                    callback: function() {}
                },
            }
        }
    }

When I start it, this is the URL that comes up

http://localhost:9001/#/

My links are going to

/forms

So then the URL becomes

http://localhost:9001/forms

If I add a # sign it works

http://localhost:9001/#/forms
jrock2004 commented 9 years ago

This is an angular issue not a grunt connect issue