@functionalcms/svelte-components 4.19.11 → 4.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,6 @@
2
2
  import { cn } from '../../utils.js';
3
3
  import type { Snippet } from 'svelte';
4
4
  import { InputType, LabelSize } from './form.js';
5
- import Layout from '../../../routes/+layout.svelte';
6
5
 
7
6
  interface Props{
8
7
  label: string;
@@ -4,7 +4,8 @@ const getRedirectPipeline = (redirections) => {
4
4
  const url = event.url.pathname;
5
5
  const elem = redirections.find((element) => element.pathname === url);
6
6
  if (elem) {
7
- const redirectToUrl = encodeURI(elem.redirectTo);
7
+ const clearedUrl = elem.redirectTo.trim();
8
+ const redirectToUrl = encodeURI(clearedUrl);
8
9
  redirect(302, redirectToUrl);
9
10
  }
10
11
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.19.11",
3
+ "version": "4.20.0",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [