[wp-hackers] Trailingslashit to re_canonical

Dan Gayle dangayle at gmail.com
Fri Apr 9 18:07:44 UTC 2010

On Fri, Apr 9, 2010 at 10:23 AM, Andrew Nacin <wp at andrewnacin.com> wrote:

> get_permalink() uses user_trailingslashit, which adds the trailing slash if
> the permalink structure specifies a trailing slash. I'm pretty sure
> canonical works the same way -- it won't assume a trailing slash is
> canonical if the permalink structure doesn't have /$.

It doesn't do it for the wordpress home address, however. I've checked
it in several blogs.

<link rel='canonical' href='http://www.example.com' />

More information about the wp-hackers mailing list