Skip to content

Commit

Permalink
Temp : Bug : Fix for redirect path
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Jan 4, 2024
1 parent 1e4f816 commit dfd65cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from ui.views import authorized, login, logout, redirect_to_v3, v3, worker_dashboard

urlpatterns = [
path("", redirect_to_v3, name="index"),
path("v3/", v3, name="v3"),
path("worker-dashboard/", worker_dashboard, name="worker_dashboard"),
path("login/", login, name="login"),
path("logout/", logout, name="logout"),
Expand Down Expand Up @@ -41,6 +39,9 @@
name="javascript-catalog",
),
path("i18n/", include("django.conf.urls.i18n")),
path("v3/", v3, name="v3"),
path("", redirect_to_v3, name="index"),
re_path(r"^(?!(o/|osm/)).*$", v3),
]

if settings.DEBUG:
Expand Down
2 changes: 1 addition & 1 deletion ui/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import it from "react-intl/locale-data/it";
import pt from "react-intl/locale-data/pt";
import nl from "react-intl/locale-data/nl";
import { IntlProvider } from "react-intl";
import { Route, Switch } from "react-router";
import { Route, Switch } from "react-router-dom";
import { ConnectedRouter } from "react-router-redux";

import Auth from "./components/Auth";
Expand Down
2 changes: 1 addition & 1 deletion ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def logout(request):
return redirect("/v3/")


def v3(request):
def v3(request, *args, **kwargs):
try:
ui_app = Application.objects.get(name="OSM Export Tool UI")
except Application.DoesNotExist:
Expand Down

0 comments on commit dfd65cf

Please sign in to comment.