Skip to content

Commit

Permalink
Add UI URL to additional template context
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Jan 2, 2023
1 parent 0f34ef0 commit 6c446d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/+display/display.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export class DisplayComponent implements OnDestroy, OnInit {
const metaTemplateFunction = displayView.metaTemplateFunctions[name];
metaTags.push({
name,
content: metaTemplateFunction(document),
content: metaTemplateFunction(document).trim(),
});
}
}
Expand Down
1 change: 1 addition & 0 deletions src/app/core/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface AppState {

export const reducers = (appConfig: AppConfig): ActionReducerMap<AppState> => {
const additionalContext = {
uiUrl: `//${appConfig.host}${appConfig.port !== 80 && appConfig.port !== 443 ? ':' + appConfig.port : ''}${appConfig.baseHref}`,
vivoUrl: appConfig.vivoUrl,
serviceUrl: appConfig.serviceUrl,
};
Expand Down

0 comments on commit 6c446d6

Please sign in to comment.