Skip to content

Commit 051ee00

Browse files
authored
Merge pull request #3947 from DSpace/backport-3935-to-dspace-8_x
[Port dspace-8_x] Ensure `/reload/` (hard reload) path is included in SSR paths.
2 parents 04e3414 + 04695b2 commit 051ee00

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

config/config.example.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ ssr:
2424
# disabled (false) by default to boost server performance at the expense of loading smoothness.
2525
inlineCriticalCss: false
2626
# Path prefixes to enable SSR for. By default these are limited to paths of primary DSpace objects.
27-
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/' ]
27+
# NOTE: The "/handle/" path ensures Handle redirects work via SSR. The "/reload/" path ensures
28+
# hard refreshes (e.g. after login) trigger SSR while fully reloading the page.
29+
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/' ]
2830
# Whether to enable rendering of Search component on SSR.
2931
# If set to true the component will be included in the HTML returned from the server side rendering.
3032
# If set to false the component will not be included in the HTML returned from the server side rendering.

src/environments/environment.production.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const environment: Partial<BuildConfig> = {
88
enabled: true,
99
enablePerformanceProfiler: false,
1010
inlineCriticalCss: false,
11-
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/' ],
11+
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/' ],
1212
enableSearchComponent: false,
1313
enableBrowseComponent: false,
1414
},

src/environments/environment.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const environment: BuildConfig = {
1212
enabled: true,
1313
enablePerformanceProfiler: false,
1414
inlineCriticalCss: false,
15-
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/' ],
15+
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/' ],
1616
enableSearchComponent: false,
1717
enableBrowseComponent: false,
1818
},

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const environment: Partial<BuildConfig> = {
1313
enabled: false,
1414
enablePerformanceProfiler: false,
1515
inlineCriticalCss: false,
16-
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/' ],
16+
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/' ],
1717
enableSearchComponent: false,
1818
enableBrowseComponent: false,
1919
},

0 commit comments

Comments
 (0)