Skip to content

Commit

Permalink
Merge tag '23.15.1' into develop
Browse files Browse the repository at this point in the history
Hotfix favicon for preprint discover page
  • Loading branch information
adlius committed Nov 30, 2023
2 parents d375ae0 + c104109 commit 6320bc4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [23.15.0] - 2023-11-10
### Added
- Preprint detail and landing page rewrite

## [23.14.0] - 2023-11-10
### Added
- BOA addon
Expand Down Expand Up @@ -1958,6 +1962,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Quick Files

[23.15.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.15.1
[23.15.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.15.0
[23.14.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.14.0
[23.13.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.13.0
Expand Down
14 changes: 14 additions & 0 deletions app/preprints/discover/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import RouterService from '@ember/routing/router-service';
import { inject as service } from '@ember/service';
import config from 'ember-osf-web/config/environment';

import PreprintProviderModel from 'ember-osf-web/models/preprint-provider';
import MetaTags, { HeadTagDef } from 'ember-osf-web/services/meta-tags';
import Theme from 'ember-osf-web/services/theme';

Expand Down Expand Up @@ -38,4 +39,17 @@ export default class PreprintDiscoverRoute extends Route {
return null;
}
}

afterModel(model: PreprintProviderModel) {
if (model && model.assets && model.assets.favicon) {
const headTags = [{
type: 'link',
attrs: {
rel: 'icon',
href: model.assets.favicon,
},
}];
this.set('headTags', headTags);
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-osf-web",
"version": "23.15.0",
"version": "23.15.1",
"private": true,
"description": "Ember front-end for the Open Science Framework",
"homepage": "https://github.com/CenterForOpenScience/ember-osf-web#readme",
Expand Down

0 comments on commit 6320bc4

Please sign in to comment.