diff --git a/.travis.yml b/.travis.yml
index 040f5d8..fc31a23 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,11 @@
 language: python
 python:
-    - "2.6"
-    - "2.7"
     # See https://github.com/rgalanakis/hostthedocs/pull/24 for details
     # - "3.3"
     - "3.4"
     - "3.5"
     - "3.6"
-    - "pypy"
+    - "3.7"
     - "pypy3"
 install:
   - pip install tox-travis
diff --git a/hostthedocs/__init__.py b/hostthedocs/__init__.py
index f6d860c..67e09cd 100644
--- a/hostthedocs/__init__.py
+++ b/hostthedocs/__init__.py
@@ -63,5 +63,4 @@ def latest(project, path):
         latestlink = '%s/%s' % (os.path.dirname(latestindex), path)
     else:
         latestlink = latestindex
-    # Should it be a 302 or something else?
-    return redirect(latestlink)
+    return redirect('/' + latestlink)
diff --git a/tox.ini b/tox.ini
index fe685f6..91b8465 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py26, py27, py33, py34, py35, py36, pypy, pypy3
+envlist = py33, py34, py35, py36, py37, pypy3
 
 [testenv]
 commands = nosetests
@@ -7,40 +7,11 @@ deps =
     nose
     mock
 
-[testenv:py26]
-basepython = python2.6
-deps =
-   {[testenv]deps}
-    unittest2
-
-[testenv:py27]
-basepython = python2.7
-
-[testenv:py33]
-basepython = python3.3
-
-[testenv:py34]
-basepython = python3.4
-
-[testenv:py35]
-basepython = python3.5
-
-[testenv:py36]
-basepython = python3.6
-
-[testenv:pypy]
-basepython = pypy
-
-[testenv:pypy3]
-basepython = pypy3
-
 [travis]
 python =
-  2.6: py26
-  2.7: py27
   3.3: py33
   3.4: py34
   3.5: py35
   3.6: py36
-  pypy: pypy
-  pypy3: pypy3
\ No newline at end of file
+  3.7: py37
+  pypy3: pypy3

Linking to latest doesn't work
The link to latest version is not working

Below is the debug log
(sample2 is the project name that contains only one version 0.1.2)


127.0.0.1 - - [02/Jul/2019 15:49:54] "GET /sample2/latest HTTP/1.1" 308 -
127.0.0.1 - - [02/Jul/2019 15:51:01] "GET /sample2/latest/ HTTP/1.1" 302 -
127.0.0.1 - - [02/Jul/2019 15:52:19] "GET /sample2/latest/static/docfiles/sample2/0.1.2/index.html HTTP/1.1" 302 -
127.0.0.1 - - [02/Jul/2019 15:52:31] "GET /sample2/latest/static/docfiles/sample2/0.1.2/static/docfiles/sample2/0.1.2/static/docfiles/sample2/0.1.2/index.html HTTP/1.1" 302 -
127.0.0.1 - - [02/Jul/2019 15:52:56] "GET /sample2/latest/static/docfiles/sample2/0.1.2/static/docfiles/sample2/0.1.2/static/docfiles/sample2/0.1.2/static/docfiles/sample2/0.1.2/static/docfiles/sample2/0.1.2/static/docfiles/sample2/0.1.2/static/docfiles/sample2/0.1.2/index.html HTTP/1.1" 302 - 
diff --git a/tests/test_hostthedocs.py b/tests/test_hostthedocs.py
index 631bc6d..485f76b 100644
--- a/tests/test_hostthedocs.py
+++ b/tests/test_hostthedocs.py
@@ -51,12 +51,15 @@ class LatestTests(Base):
 
     def assert_redirect(self, path, code, location):
         resp = self.app.get(path)
-        self.assertEqual(resp.status_code, code)
+        if isinstance(code, list):
+            self.assertIn(resp.status_code, code)
+        else:
+            self.assertEqual(resp.status_code, code)
         gotloc = urlparse.urlsplit(dict(resp.headers)['Location']).path
         self.assertEqual(gotloc, location)
 
     def test_latest_noslash(self):
-        self.assert_redirect('/foo/latest', 301, '/foo/latest/')
+        self.assert_redirect('/foo/latest', [301, 308], '/foo/latest/')
 
     def test_latest_root(self):
             self.assert_redirect('/Project2/latest/', 302, '/linkroot/Project2/2.0.3/index.html')

pip install -e .
parse_log_pytest
Pipfile
nose mock pytest
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
click==8.0.4
conf==0.4.1
dataclasses==0.8
Flask==2.0.3
-e git+https://github.com/rgalanakis/hostthedocs.git@89e2a62f4b13aec4adb6000f47efda696c7e14e9#egg=hostthedocs
importlib-metadata==4.8.3
iniconfig==1.1.1
itsdangerous==2.0.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mock==5.2.0
natsort==8.2.0
nose==1.3.7
packaging==21.3
pipfile==0.0.2
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
six==1.17.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tomli==1.2.3
typing_extensions==4.1.1
Werkzeug==2.0.3
zipp==3.6.0

name: hostthedocs
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - pipfile=0.0.2=py_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - click==8.0.4
      - conf==0.4.1
      - dataclasses==0.8
      - flask==2.0.3
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - itsdangerous==2.0.1
      - jinja2==3.0.3
      - markupsafe==2.0.1
      - mock==5.2.0
      - natsort==8.2.0
      - nose==1.3.7
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - six==1.17.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - werkzeug==2.0.3
      - zipp==3.6.0
prefix: /opt/conda/envs/hostthedocs

tests/test_hostthedocs.py::LatestTests::test_latest_certainfile tests/test_hostthedocs.py::LatestTests::test_latest_nestedfile tests/test_hostthedocs.py::LatestTests::test_latest_root
tests/test_hostthedocs.py::HomeTests::test_finds_all tests/test_hostthedocs.py::HomeTests::test_inserts_latest tests/test_hostthedocs.py::HMFDTests::test_add_new tests/test_hostthedocs.py::HMFDTests::test_delete tests/test_hostthedocs.py::HMFDTests::test_delete_when_disabled tests/test_hostthedocs.py::HMFDTests::test_method_not_allowed tests/test_hostthedocs.py::HMFDTests::test_missing_zip tests/test_hostthedocs.py::HMFDTests::test_readonly tests/test_hostthedocs.py::LatestTests::test_latest_noslash tests/test_hostthedocs.py::LatestTests::test_missing_returns_404 tests/test_hostthedocs.py::ConfigTests::test_uses_flask_if_debug tests/test_hostthedocs.py::ConfigTests::test_uses_flask_if_flask tests/test_hostthedocs.py::ConfigTests::test_uses_flask_if_gevent_none tests/test_hostthedocs.py::ConfigTests::test_uses_gevent_if_gevent tests/test_hostthedocs.py::ConfigTests::test_uses_gevent_if_gevent_available tests/test_hostthedocs.py::ConfigTests::test_uses_serve_if_provided
.travis.yml tox.ini hostthedocs/__init__.py
.travis.yml tox.ini hostthedocs/__init__.py