express-uncapitalize icon indicating copy to clipboard operation
express-uncapitalize copied to clipboard

exclude query strings

Open pr1ntr opened this issue 11 years ago • 7 comments
trafficstars

Is there any plan to add a feature to exclude query parameters?

pr1ntr avatar May 19 '14 19:05 pr1ntr

So, this is a tough one. Search engines do treat query strings as part of the canonical URL, but I can understand why case sensitivity in the query string would matter. I'll take care of this one in the coming week or two (as an option).

tacomilkshake avatar May 19 '14 19:05 tacomilkshake

:+1:

jerone avatar Oct 19 '14 13:10 jerone

any update here?

scien avatar Jan 17 '15 18:01 scien

ensureLowercase = (req, res, next) ->
  url = req._parsedUrl
  if /[A-Z]/.test url.pathname
    url.search ?= ''
    res.redirect 301, "#{url.pathname.toLowerCase()}#{url.search}"
  else
    next()

scien avatar Jan 17 '15 19:01 scien

+1

qwtel avatar Oct 15 '15 11:10 qwtel

Any update on this?

Sicria avatar Oct 22 '15 13:10 Sicria

PR submitted

scien avatar Oct 22 '15 22:10 scien