Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Fix #9382: Inject base tag to all .html files - #9450

Merged
dschmidt merged 1 commit into
masterfrom
cern-base-href
Jul 19, 2023
Merged

dschmidt merged 1 commit into
masterfrom
cern-base-href

Conversation

@dschmidt

Copy link
Copy Markdown
Member

Description

Adds base tag for CERN at build time.

Related Issue

Motivation and Context

CERN does not want to implement this dynamically on server side like we do and prefers to have a build option.

Unfortunately I needed to move two .html files to our project root, I tried very hard but couldn't figure out a way to avoid this. It seems basically impossible to override the output path for .html files in vite.
In rollup there seems to be the possibility to provide multiple input/output values and make it work that way - but that does not work in vite. It might be possibly to use a renaming plugin for rollup/vite but that did not seem worth the trouble just for keeping two files out of the project root...

How Has This Been Tested?

Done a local CERN build and checked base tag was available in all .html files.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@dschmidt
dschmidt marked this pull request as ready for review July 19, 2023 15:06
@update-docs

update-docs Bot commented Jul 19, 2023

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@dschmidt
dschmidt enabled auto-merge (squash) July 19, 2023 15:48
@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 8 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@dschmidt
dschmidt merged commit 2a1245d into master Jul 19, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the cern-base-href branch July 19, 2023 16:19
@dschmidt dschmidt mentioned this pull request Aug 1, 2023
2 tasks done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable router-history-mode

2 participants