File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1096,7 +1096,7 @@ fn version() -> String {
1096
1096
1097
1097
/// Get a url to an instance of the web-viewer
1098
1098
///
1099
- /// This may point to rerun.io/viewer or localhost depending on
1099
+ /// This may point to app. rerun.io or localhost depending on
1100
1100
/// whether [`start_web_viewer_server()`] was called.
1101
1101
#[ pyfunction]
1102
1102
fn get_app_url ( ) -> String {
@@ -1106,13 +1106,16 @@ fn get_app_url() -> String {
1106
1106
}
1107
1107
1108
1108
let build_info = re_build_info:: build_info!( ) ;
1109
- if let Some ( short_git_hash) = build_info. git_hash . get ( ..7 ) {
1110
- format ! ( "https://rerun.io/viewer/commit/{short_git_hash}" )
1109
+
1110
+ if build_info. is_final ( ) {
1111
+ format ! ( "https://app.rerun.io/version/{}" , build_info. version)
1112
+ } else if let Some ( short_git_hash) = build_info. git_hash . get ( ..7 ) {
1113
+ format ! ( "https://app.rerun.io/commit/{short_git_hash}" )
1111
1114
} else {
1112
1115
re_log:: warn_once!(
1113
- "No valid git hash found in build info. Defaulting to rerun.io/viewer for app url."
1116
+ "No valid git hash found in build info. Defaulting to app. rerun.io for app url."
1114
1117
) ;
1115
- "https://rerun.io/viewer " . to_owned ( )
1118
+ "https://app. rerun.io" . to_owned ( )
1116
1119
}
1117
1120
}
1118
1121
You can’t perform that action at this time.
0 commit comments