Skip to content

PB-2357: add missing .html suffix. - #171

Merged
adk-swisstopo merged 1 commit into
masterfrom
PB-2357-html
Jul 29, 2026
Merged

PB-2357: add missing .html suffix.#171
adk-swisstopo merged 1 commit into
masterfrom
PB-2357-html

Conversation

@adk-swisstopo

@adk-swisstopo adk-swisstopo commented Jul 29, 2026

Copy link
Copy Markdown
Member

The server side does not do any URL translation (i.e. no suffix is automatically added to URLs without JavaScript). Some links are managed manually through hand-written HTML. These links are missing the .html suffix and are thus broken for clients that do not support JavaScript.

This change adds the .html suffix to the manually-managed links.

Test link

@adk-swisstopo
adk-swisstopo marked this pull request as ready for review July 29, 2026 08:48

@asteiner-swisstopo asteiner-swisstopo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected, thanks!

Maybe not ideal as now you have to remember in which context to add the ".html". But it's ok, there are examples and it's not going to change often.

@adk-swisstopo

adk-swisstopo commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

Maybe not ideal as now you have to remember in which context to add the ".html". But it's ok, there are examples and it's not going to change often.

With https://github.com/geoadmin/infra-e2e-tests/pull/428 you won't have to remember as test breakage will remind you :)

I agree it would be better to get rid of that hand-written HTML, or at least the hand-written links. But I am unclear on how to do that and presumably there was a reason for doing it like this in the first place?

The server side does not do any URL translation (i.e. no suffix is automatically
added to URLs without JavaScript). Some links are managed manually through
hand-written HTML. These links are missing the `.html` suffix and are thus
broken for clients that do not support JavaScript.

This change adds the `.html` suffix to the manually-managed links.
@adk-swisstopo
adk-swisstopo merged commit 568707d into master Jul 29, 2026
2 checks passed
@adk-swisstopo
adk-swisstopo deleted the PB-2357-html branch July 29, 2026 13:55
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