diff --git a/cookiecutter.json b/cookiecutter.json index c15d6a8..77c9c72 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -4,7 +4,7 @@ "app_prefix": "dh", "description": "{{cookiecutter.project_title}} will humanize all your digits!", "author": "Research Software Lab, Centre for Digital Humanities, Utrecht University", - "author_url": "https://cdh.uu.nl/centre-for-digital-humanities/research-software-lab/", + "author_url": "https://cdh.uu.nl/about/research-software-lab/", "origin": "github:CentreForDigitalHumanities/{{cookiecutter.slug}}", "database_name": "{{cookiecutter.slug}}", "database_user": "{{cookiecutter.slug}}", diff --git a/{{cookiecutter.slug}}/frontend.angular/src/app/app.config.ts b/{{cookiecutter.slug}}/frontend.angular/src/app/app.config.ts index 4d097a8..187f1ea 100644 --- a/{{cookiecutter.slug}}/frontend.angular/src/app/app.config.ts +++ b/{{cookiecutter.slug}}/frontend.angular/src/app/app.config.ts @@ -7,7 +7,13 @@ import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; -export const BACKEND_URL = new InjectionToken('BackendUrl'); +export const BACKEND_URL = new InjectionToken('BackendUrl', { + // because proxy doesn't work for SSR, support a wonky workaround + // by manually specifying the URL where the backend is running + // https://github.com/angular/angular-cli/issues/27144 + // By default it is empty, because in the browser this isn't needed + factory: () => '' +}); export const appConfig: ApplicationConfig = { providers: [ @@ -27,11 +33,6 @@ export const appConfig: ApplicationConfig = { // the root e.g. /home // The server should then switch index.html based on a language // cookie with a fallback to Dutch e.g. /nl/static/index.html - { provide: APP_BASE_HREF, useValue: '/' }, - // because proxy doesn't work for SSR, support a wonky workaround - // by manually specifying the URL where the backend is running - // https://github.com/angular/angular-cli/issues/27144 - // By default it is empty, because in the browser this isn't needed - { provide: BACKEND_URL, useValue: '' } + { provide: APP_BASE_HREF, useValue: '/' } ] }; diff --git a/{{cookiecutter.slug}}/frontend.angular/src/app/footer/footer.component.html b/{{cookiecutter.slug}}/frontend.angular/src/app/footer/footer.component.html index 0329a31..7a41e04 100644 --- a/{{cookiecutter.slug}}/frontend.angular/src/app/footer/footer.component.html +++ b/{{cookiecutter.slug}}/frontend.angular/src/app/footer/footer.component.html @@ -15,7 +15,7 @@

{{cookiecutter.project_title}}

diff --git a/{{cookiecutter.slug}}/frontend.backbone/src/example/logoBanner-template.hbs b/{{cookiecutter.slug}}/frontend.backbone/src/example/logoBanner-template.hbs index 73b2296..5e60913 100644 --- a/{{cookiecutter.slug}}/frontend.backbone/src/example/logoBanner-template.hbs +++ b/{{cookiecutter.slug}}/frontend.backbone/src/example/logoBanner-template.hbs @@ -1,6 +1,6 @@
Powered by
- +