{"id":1042009,"date":"2015-12-16T00:04:05","date_gmt":"2015-12-16T08:04:05","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/"},"modified":"2015-12-18T05:24:09","modified_gmt":"2015-12-18T13:24:09","slug":"strange-redirection-issue","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/","title":{"rendered":"Strange redirection issue"},"content":{"rendered":"<p>I&#8217;m having a strange issue with events redirecting to other events when they have closely related slugs.<\/p>\n<p>It was first reported to me about a day ago from a user who wanted to enroll for an event in California in February, but complained that every time she clicked the link she was sent to a page with a listing for an event in Europe in August. However, the European event was a copy of the same type of event &#8212; and the slugs had names like this:<\/p>\n<p>event-10-2<br \/>\nevent-10-2-2<br \/>\nevent-10-2-2-2<br \/>\nevent-10-2-2-2-2<\/p>\n<p>etc.   <\/p>\n<p>I had reviewed the specific February event on December 3rd after installing the Event Tickets Pro upgrade, so I know it was working then without a problem.   I suspect that this was probably triggered by the WP 4.4. upgrade because I&#8217;ve found a lot of glitches on different sites. .. but I can&#8217;t be sure.<\/p>\n<p>I was able to fix it by simply renaming the slugs so that each event had a unique slug. The reason that these have similar slugs is that they are different dates and times for identical events with the same title, and apparently when WordPress sees a duplicate title it simply tacks on -2 to the end of the previous slug. <\/p>\n<p>However, there is another series of events showing the same behavior.  I&#8217;ve included the link in the system information section..  I will leave this intact for a few days to allow you to take a look at it.  Basically same story, with this series of slugs:<\/p>\n<p>otherevent-4-2  (January)<br \/>\notherevent-4-2-2  (March)<br \/>\notherevent-4-2-2-2 (April)<br \/>\notherevent-4-2-2-2-2 (September)<br \/>\notherevent-4-2-2-2-2-2 (November)<\/p>\n<p>The first two events on the list go to the correct link.<\/p>\n<p>But when the link to the April event is clicked, it goes to the September event.<\/p>\n<p>November event goes where it is supposed to go.  <\/p>\n<p>So it&#8217;s a mystery . Obviously I can fix this by paying more attention to the slugs that are used &#8230; but it would nice to be able to get to the bottom of this.<\/p>\n","protected":false},"template":"","class_list":["post-1042009","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Strange redirection issue -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Strange redirection issue -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m having a strange issue with events redirecting to other events when they have closely related slugs. It was first reported to me about a day ago from a user who wanted to enroll for an event in California in February, but complained that every time she clicked the link she was sent to a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-12-18T13:24:09+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/\",\"name\":\"Strange redirection issue -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-12-16T08:04:05+00:00\",\"dateModified\":\"2015-12-18T13:24:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Strange redirection issue\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Strange redirection issue -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/","og_locale":"en_US","og_type":"article","og_title":"Strange redirection issue -","og_description":"I&#8217;m having a strange issue with events redirecting to other events when they have closely related slugs. It was first reported to me about a day ago from a user who wanted to enroll for an event in California in February, but complained that every time she clicked the link she was sent to a [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/","article_modified_time":"2015-12-18T13:24:09+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/","name":"Strange redirection issue -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-12-16T08:04:05+00:00","dateModified":"2015-12-18T13:24:09+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-redirection-issue\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Strange redirection issue"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1042009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1042009\/revisions"}],"predecessor-version":[{"id":1043337,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1042009\/revisions\/1043337"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1042009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}