It would be nice if there was an option that instead of sending a 301 redirect, there could be a facility for using the location: header to display the page directly and avoid the extra indirection. Thanks for the nice module by the way.

Comments

Dave Reid’s picture

Status: Active » Closed (works as designed)

That's how redirections work. drupal_goto() writes a location header.

pedrochristopher’s picture

Thanks Dave for the quick response. Sorry, I've clearly got my head twisted the wrong way about this header issue. Is there not a way to have the actual desired page to be displayed without the 301 redirect, but to indicate the correct URL in the header somewhat? You're clearly right about the location: header, I thought I remembered a different one, sorry for the confusion.

Edited: Found it. It's called Content-location: as in the following example for instance http://chriscant.phdcc.com/2009/04/content-location-http-header-for.html

pedrochristopher’s picture

Title: location: header might be better than 301 redirect » Content-location: header might be better than 301 redirect
Status: Closed (works as designed) » Active
nicholasThompson’s picture

Status: Active » Postponed (maintainer needs more info)

I fail to see what this head actually does.

You might be referring to the Canonical meta tag which I believe Nodewords already implements.

nicholasThompson’s picture

Status: Postponed (maintainer needs more info) » Patch (to be ported)

It looks like the Content Location header is almost synonymous with the Canonical link in the HEAD (rather than HEADER).

This has been added to DRUPAL-6--1. Both the Canonical Link and the Content-Location header are options which can be enabled. Each one simple mimics the URL at the moment - this needs work I think as both "node/1" and "node/1?page=1" both show the same content but have unique canonical and content-location values. I cant simply remove the page from the Query string as there may be a block or listing on the page somewhere which actually USES the pager (eg maybe an organic group homepage?).

However, that's a different issue (cleaning up the Query String), so for now this has been committed and I need to port it to D5 and D7.

nicholasThompson’s picture

nicholasThompson’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev

Ported to 7.x, only 5.x remains.