File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/routes/docs/references/[version]/[platform]/[service] Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 90
90
// nodejs has a `server-` prefix.
91
91
const needsServerPrefix =
92
92
! platform .startsWith (' client-' ) && ! platform .startsWith (' server-' );
93
- if (needsServerPrefix ) {
93
+ if (needsServerPrefix && document . referrer ) {
94
94
platformBindingForSelect = ` server-${platform } ` as Platform ;
95
95
}
96
96
}
127
127
// the service description up to the first full stop, providing sufficient information.
128
128
$ : shortenedDescription = serviceDescription .substring (0 , serviceDescription .indexOf (' .' ) + 1 );
129
129
130
- $ : platformBindingForSelect = platform ;
131
- $ : platform = $ page .params .platform as Platform ;
130
+ $ : platformBindingForSelect = $page . params . platform as Platform ;
131
+ $ : platform = ( $preferredPlatform ?? $ page .params .platform ) as Platform ;
132
132
$ : platformType = platform .startsWith (' client-' ) ? ' CLIENT' : ' SERVER' ;
133
133
$ : serviceName = serviceMap [data .service ?.name ];
134
134
$ : title = serviceName + API_REFERENCE_TITLE_SUFFIX ;
You can’t perform that action at this time.
0 commit comments