Skip to content

Commit 96ece0f

Browse files
authored
fix: UI project cannot handle fallback routes (#3766)
* fix: fallback route cannot navigate to react page Signed-off-by: snowron <snowronark@gmail.com> Signed-off-by: Danny Chiao <danny@tecton.ai> * refactor fix Signed-off-by: snowron <snowronark@gmail.com> --------- Signed-off-by: snowron <snowronark@gmail.com> Signed-off-by: Danny Chiao <danny@tecton.ai>
1 parent 470f6a8 commit 96ece0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/feast/ui_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def read_registry():
7777
# For all other paths (such as paths that would otherwise be handled by react router), pass to React
7878
@app.api_route("/p/{path_name:path}", methods=["GET"])
7979
def catch_all():
80-
filename = ui_dir + "index.html"
80+
filename = ui_dir.joinpath("index.html")
8181

8282
with open(filename) as f:
8383
content = f.read()

0 commit comments

Comments
 (0)