flipside-org / incendios

The main repo for the IncĂȘndios project.
http://www.incendios.pt
0 stars 0 forks source link

page_meta.full_url returns localhost:3001 #94

Closed olafveerman closed 11 years ago

olafveerman commented 11 years ago

The page_meta.full_url returns localhost:3001 and not incendios.pt (or staging.incendios.pt)

See for example the share button:

<a href="https://twitter.com/share?url=<%= page_meta.full_url %>

returns:

<a href="https://twitter.com/share?url=localhost:3001/en/story/general-overview">

danielfdsilva commented 11 years ago

The page_meta.full_url is created through the concatenation of req.headers.host and req.url.

The problem is that req.headers.host is returning localhost:3001 Could this be because this is behind apache?

nunoveloso commented 11 years ago

Fixed directly in master.