Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

HTTP response.redirect() #14

@mm765

Description

@mm765

I am not certain if this is correct or not.. i tried:
app.verb('/', (req, res) ->
res.redirect('public/html/index.html')
)

which does not work. It does not work, because it sends the following location
Location: http://localhost:3001public/html/index.html

which is missing the "/" after the 3001 (which is the port number i am using).
The question now is: should the redirect-function add the slash after the port or should i put a slash as the first letter in my res.redirect() call ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions