@@ -70,6 +70,9 @@ function App() {
70
70
const newUrl = new URL ( window . location . href ) ;
71
71
newUrl . searchParams . set ( "json_url" , jsonUrl ) ;
72
72
window . history . replaceState ( { } , "" , newUrl . toString ( ) ) ;
73
+ } else if ( view === "file_diff" ) {
74
+ // Allow direct navigation to File Diff even without json_url
75
+ setActiveTab ( "file_diff" ) ;
73
76
}
74
77
75
78
// Check if fb directory exists and load internal utils if available
@@ -132,6 +135,8 @@ function App() {
132
135
// Then, determine which view to show
133
136
if ( view === "ir_code_comparison" ) {
134
137
setActiveTab ( "comparison" ) ;
138
+ } else if ( view === "file_diff" ) {
139
+ setActiveTab ( "file_diff" ) ;
135
140
}
136
141
137
142
setDataLoaded ( true ) ;
@@ -201,6 +206,8 @@ function App() {
201
206
// Then, determine which view to show
202
207
if ( initialView === "ir_code_comparison" ) {
203
208
setActiveTab ( "comparison" ) ;
209
+ } else if ( initialView === "file_diff" ) {
210
+ setActiveTab ( "file_diff" ) ;
204
211
}
205
212
setDataLoaded ( true ) ;
206
213
setLoadedUrl ( url ) ;
@@ -212,6 +219,8 @@ function App() {
212
219
// Add view and kernel_hash parameters if applicable
213
220
if ( initialView === "ir_code_comparison" ) {
214
221
newUrl . searchParams . set ( "view" , "ir_code_comparison" ) ;
222
+ } else if ( initialView === "file_diff" ) {
223
+ newUrl . searchParams . set ( "view" , "file_diff" ) ;
215
224
}
216
225
217
226
if ( kernelHash ) {
0 commit comments