Hi. Have a problem with the redirect test created ...
# ask-questions
i
Hi. Have a problem with the redirect test created with the visual editor. No redirect is happening at all. In preview, everything is fine and working well. I think the problem can be in urlPattern because the debug says, "Skip because of condition."
Copy code
{
  "status": "running",
  "hashVersion": 2,
  "hashAttribute": "id",
  "urlPatterns": [
    {
      "include": true,
      "type": "simple",
      "pattern": "<https://site.com/templates/>"
    }
  ],
  "meta": [
    {
      "key": "0",
      "name": "Current "
    },
    {
      "key": "1",
      "name": "New layout"
    },
    {
      "key": "2",
      "name": "Variation 2"
    }
  ],
  "filters": [],
  "seed": "cca2d79d-e96b-4bb6-853a-2fc50c1f9fb8",
  "name": "Templates old & new layout",
  "phase": "1",
  "condition": {
    "url": "<https://site.com/templates/>"
  },
  "coverage": 1
}
What goes wrong here? It seems everything should work fine for https://site.com/templates/ page Mb another test can impact, but it still says "Skip because of url targeting" while no URL targeting for that test was applied.
1
r
@incalculable-elephant-73095 has marked the issue as closed. Reopen Issue button
Hello, Volodymyr, thanks for reaching out. Please try removing the condition (­`"condition": {"url": ". . ."}­`). It's unnecessary if you've also defined the URL pattern in the ​`"urlPatterns"`​ attribute. Does this resolve the issue?
i
Hi. Yeah, that`s working now. It seems odd that I can use both of them simultaneously.
thanks