Skip to content

PB-1877 Directly link to Terms of Use #patch#44

Merged
asteiner-swisstopo merged 2 commits intomasterfrom
bug-PB-1877-fix-link-to-terms-of-use-in-iframe-page
Sep 23, 2025
Merged

PB-1877 Directly link to Terms of Use #patch#44
asteiner-swisstopo merged 2 commits intomasterfrom
bug-PB-1877-fix-link-to-terms-of-use-in-iframe-page

Conversation

@asteiner-swisstopo
Copy link
Copy Markdown
Contributor

@asteiner-swisstopo asteiner-swisstopo commented Sep 22, 2025

This changes a link on the "Embed in an iframe" to point to the General Terms of Use of geo.admin.ch. Before, it pointed to the iFrame page of the CMS.

This is to test the changes made in the CI here:

Creation of the PR should:

  1. Trigger CodeBuild project [doc-tech-pr](https://974517877189-54ujtveq.eu-central-1.console.aws.amazon.com/codesuite/codebuild/974517877189/projects/doc-tech-pr/history?region=eu-central-1) to build the website on the current Git branch.
  2. Deploy (aws s3 cp) the build artifacts on s3://doc-tech-dev-swisstopo.
  3. Add a link to the PR description: https://sys-docs.dev.bgdi.ch/preview/bug-pb-1877-fix-link-to-terms-of-use-in-iframe-page/index.html

👉 EDIT: Additionally added the base parameter to the Vitepress config such that it prepends preview/feat-pb-1234-my-branch to to all static asset paths. See the corresponding change in buildspec_pr.yml, PR https://github.com/geoadmin/infra-terraform-bgdi/pull/1179.

Test link

The page currently pointed at is going to change with the go-live of the Tech Docs.

This is labelled with PB-1877 because it's a small fix that I want to use to test whether CodeBuild etc works as expected. Ultimately, the PR out of this change should contain a description with a preview link to a version on DEV of the Tech Docs that corresponds to the status of the branch.
@asteiner-swisstopo asteiner-swisstopo self-assigned this Sep 22, 2025
@asteiner-swisstopo asteiner-swisstopo changed the title PB-1877 Directly link to Terms of Use PB-1877 Directly link to Terms of Use #patch Sep 22, 2025
For test links, we need to take into account that there is a "/preview/feat-PB-1234-my-branch" in between. If we don't add this to the static asset links, it will result in broken styling, missing images and broken page links.

See ["Base URL"](https://vitepress.dev/guide/asset-handling#base-url) in the VitePress docs.
@asteiner-swisstopo asteiner-swisstopo requested review from ltflb-bgdi and pedroslvieira and removed request for ltflb-bgdi September 22, 2025 16:03
@asteiner-swisstopo asteiner-swisstopo merged commit b16a45c into master Sep 23, 2025
3 checks passed
@asteiner-swisstopo asteiner-swisstopo deleted the bug-PB-1877-fix-link-to-terms-of-use-in-iframe-page branch September 23, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants