Skip to content

Commit

Permalink
Merge pull request #12 from eea/develop
Browse files Browse the repository at this point in the history
fix(footnotes & headlines): should not be prefixed
  • Loading branch information
nileshgulia1 committed Jan 25, 2024
2 parents f0b04e0 + a1af979 commit 2ea7578
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 146 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [0.1.11](https://github.com/eea/volto-prefixpath/compare/0.1.10...0.1.11) - 23 January 2024
### [0.1.12](https://github.com/eea/volto-prefixpath/compare/0.1.11...0.1.12) - 25 January 2024

#### :bug: Bug Fixes

- fix: inline linked headlines [nileshgulia1 - [`d34376f`](https://github.com/eea/volto-prefixpath/commit/d34376f4fdcdfdcdab7dec033fdfa5b14d61273e)]
- fix(flattenToAppUrl): do not prefix in hashlinks [nileshgulia1 - [`e8efd6d`](https://github.com/eea/volto-prefixpath/commit/e8efd6d2aa0d0b28baf375448fe1f080e666ab02)]
- fix: anchors [nileshgulia1 - [`9080516`](https://github.com/eea/volto-prefixpath/commit/90805164261337e1c32a469394003d36cabea8af)]
- fix(footnotes): should not be prefixed [nileshgulia1 - [`b58570f`](https://github.com/eea/volto-prefixpath/commit/b58570f8baf99a11c5fa9fbfced4a4c81b269e84)]

#### :hammer_and_wrench: Others

- bring back slate styles [nileshgulia1 - [`28cef8d`](https://github.com/eea/volto-prefixpath/commit/28cef8d4361dc85d2c2e31ea518d3ec979a9da72)]
### [0.1.11](https://github.com/eea/volto-prefixpath/compare/0.1.10...0.1.11) - 23 January 2024

### [0.1.10](https://github.com/eea/volto-prefixpath/compare/0.1.9...0.1.10) - 22 January 2024

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-prefixpath",
"version": "0.1.11",
"version": "0.1.12",
"description": "@eeacms/volto-prefixpath: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
120 changes: 0 additions & 120 deletions src/customizations/@eeacms/volto-anchors/helpers.js

This file was deleted.

22 changes: 0 additions & 22 deletions src/customizations/@eeacms/volto-anchors/less/slate-anchors.less

This file was deleted.

2 changes: 1 addition & 1 deletion src/customizations/volto/helpers/Url/Url.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function flattenToAppURL(url) {
.replace(settings.internalApiPath, '')
.replace(settings.apiPath, '')
.replace(settings.publicURL, '');
if (isInternalURL(adjustedUrl)) {
if (isInternalURL(adjustedUrl) && !adjustedUrl.startsWith('#')) {
if (prefix && adjustedUrl?.length && !adjustedUrl?.startsWith(prefix))
adjustedUrl = `${prefix}${adjustedUrl}`;
}
Expand Down

0 comments on commit 2ea7578

Please sign in to comment.