Skip to content

Commit b16a45c

Browse files
Merge pull request #44 from geoadmin/bug-PB-1877-fix-link-to-terms-of-use-in-iframe-page
PB-1877 Directly link to Terms of Use #patch
2 parents dc20149 + 0391cda commit b16a45c

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.vitepress/config.mts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ import fs from "fs";
55
export default defineConfig({
66
title: "*.geo.admin.ch",
77
description: "Technical Documentation about *.geo.admin.ch",
8+
/*
9+
Prepend a base path such that links still work when the page is built for the
10+
preview in a PR ("test link" in the PR description).
11+
12+
For example, VITE_BASE_URL would be set to "/preview/feat-pb-1234-my-branch/"
13+
for a link like this:
14+
15+
https://sys-docs.dev.bgdi.ch/preview/feat-pb-1234-my-branch/index.html
16+
*/
17+
base: process.env.VITE_BASE_URL || '/',
818
head: [["link", { rel: "icon", href: "/favicon.ico" }]],
919
ignoreDeadLinks: "localhostLinks",
1020
vite: {

docs/embed-in-an-iframe.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ You can embed an interactive version of the [map viewer](https://map.geo.admin.c
77
The following expands on the introduction given in the [Web Integration: iFrame](https://www.geo.admin.ch/de/web-integration-iframe/) page.
88

99
:::tip ⚖️ Terms of Use
10-
Refer to the corresponding section on the [Web Integration: iFrame](https://www.geo.admin.ch/de/web-integration-iframe/) page.
10+
When embedding the map viewer using an iframe, you must comply with the [Terms of Use for geo.admin.ch](https://www.geo.admin.ch/en/general-terms-of-use-fsdi).
11+
Please review these terms before implementation to ensure your use case is permitted.
1112
:::
1213

1314
## Add a legend

0 commit comments

Comments
 (0)