Canonical for location pages

This topic contains 4 replies, has 3 voices, and was last updated by  identity 9 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #5768

    identity
    Lifetime Member
    Post count: 445

    Just noticed that when I looked at a specific location page, e.g., example.com/location/some-city/ that the canonical link element points to the following as the canonical URL: example.com/location/

    This is incorrect and highly undesirable for a couple reasons:
    1 – essentially strips away all local value of the individual cities (perhaps other locations as well; regions, countries, neighborhoods) as it refers everything back up to a broader reference

    2 – sends a very mixed signal to Google and other search engines as the content of the pages is most likely very different since the individual location pages are a subset of the top level location page.

    On a sub note, canonical usage appears to be a bit spotty. When I looked at example.com/places/some-city/hotels/ there was no canonical link element at all. It does appear though on specific listing detail pages. Not that it has to be there, though consistency across the site would be nice.

    Additionally, looks like example.com/places/some-city/ and example.com/location/some-city/ are essentially the same page/content? If so, would be nice if one automatically redirected to the other or in this case, if the canonical on one pointed to the other.

    #5819

    Paolo
    Site Admin
    Post count: 31206

    example.com/places/some-city/ and example.com/location/some-city/ are similar only if you are using 1 custom post types and are using different templates.

    1 is using the home page template, the second is using the listings templates.

    example:

    http://wpgeo.directory/attractions/united-states/illinois/chicago/

    and

    http://wpgeo.directory/location/united-states/illinois/chicago/

    they are 2 completely different pages.

    As far as the canonical link goes, I agree 100% with you and I’ve forwarded this to Vikas asking him to fix it asap.

    Thank you for spotting this.

    #5834

    identity
    Lifetime Member
    Post count: 445

    Great, thanks.

    Cheers

    #5863

    Vikas
    Full Member
    Post count: 1128

    Hi,

    I have fixed it and it will be there in next release.

    Thanks

    #5871

    identity
    Lifetime Member
    Post count: 445

    Excellent!

    Cheers

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket