b8042c722e
We now essentially do 2 redirects if you hit a `folder/` 1. If you visit `/ui/dc1/kv/folder/`, `consul` will redirect you to `/ui/dc1/kv/folder` 2. Once redirected to `/ui/dc1/kv/folder` via a 301, use ember/history API to redirect you back to `/ui/dc1/kv/folder/`. Bit long winded, but achieves what we want without having to get stuck into `consul` itself to remove the 301 for the UI
20 lines
650 B
Gherkin
20 lines
650 B
Gherkin
@setupApplicationTest
|
|
Feature: dc / kvs / trailing slash
|
|
Scenario: I have 10 folders
|
|
Given 1 datacenter model with the value "datacenter"
|
|
And 10 kv models from yaml
|
|
When I visit the kvs page for yaml
|
|
---
|
|
dc: datacenter
|
|
kv: foo/bar
|
|
---
|
|
Then the url should be /datacenter/kv/foo/bar/
|
|
And the last GET request was made to "/v1/kv/foo/bar/?keys&dc=datacenter&separator=%2F"
|
|
When I visit the kvs page for yaml
|
|
---
|
|
dc: datacenter
|
|
kv: foo/bar/
|
|
---
|
|
Then the url should be /datacenter/kv/foo/bar/
|
|
And the last GET request was made to "/v1/kv/foo/bar/?keys&dc=datacenter&separator=%2F"
|