Skip to content

Commit dfd65cf

Browse files
Temp : Bug : Fix for redirect path
1 parent 1e4f816 commit dfd65cf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

core/urls.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from ui.views import authorized, login, logout, redirect_to_v3, v3, worker_dashboard
99

1010
urlpatterns = [
11-
path("", redirect_to_v3, name="index"),
12-
path("v3/", v3, name="v3"),
1311
path("worker-dashboard/", worker_dashboard, name="worker_dashboard"),
1412
path("login/", login, name="login"),
1513
path("logout/", logout, name="logout"),
@@ -41,6 +39,9 @@
4139
name="javascript-catalog",
4240
),
4341
path("i18n/", include("django.conf.urls.i18n")),
42+
path("v3/", v3, name="v3"),
43+
path("", redirect_to_v3, name="index"),
44+
re_path(r"^(?!(o/|osm/)).*$", v3),
4445
]
4546

4647
if settings.DEBUG:

ui/app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import it from "react-intl/locale-data/it";
1010
import pt from "react-intl/locale-data/pt";
1111
import nl from "react-intl/locale-data/nl";
1212
import { IntlProvider } from "react-intl";
13-
import { Route, Switch } from "react-router";
13+
import { Route, Switch } from "react-router-dom";
1414
import { ConnectedRouter } from "react-router-redux";
1515

1616
import Auth from "./components/Auth";

ui/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def logout(request):
4242
return redirect("/v3/")
4343

4444

45-
def v3(request):
45+
def v3(request, *args, **kwargs):
4646
try:
4747
ui_app = Application.objects.get(name="OSM Export Tool UI")
4848
except Application.DoesNotExist:

0 commit comments

Comments
 (0)