From 75c99e59f52b675c89d56b8743fb3e51ff868e58 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 15 May 2025 20:38:27 -0500 Subject: [PATCH] [studio/applib] Make navigateTo handle UUID paths --- .../src/olympic/studio/applib/src/studioui.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/deps/nostalgia/src/olympic/studio/applib/src/studioui.cpp b/deps/nostalgia/src/olympic/studio/applib/src/studioui.cpp index b617f0e..a6d0d6e 100644 --- a/deps/nostalgia/src/olympic/studio/applib/src/studioui.cpp +++ b/deps/nostalgia/src/olympic/studio/applib/src/studioui.cpp @@ -31,7 +31,15 @@ static bool shutdownHandler(turbine::Context &ctx) { } void navigateTo(Context &ctx, ox::StringParam filePath, ox::StringParam navArgs) noexcept { - ctx.ui.navigateTo(std::move(filePath), std::move(navArgs)); + ox::String path = std::move(filePath); + if (beginsWith(path, "uuid://")) { + auto [p, err] = keel::uuidUrlToPath(keelCtx(ctx), path); + if (err) { + return; + } + path = p; + } + ctx.ui.navigateTo(std::move(path), std::move(navArgs)); } namespace ig {