Commit 8e740dd Sebastian Flick
committed
1 parent c8a7024 commit 8e740dd Copy full SHA for 8e740dd
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
<script >
2
2
import { goto , preloadData } from ' $app/navigation' ;
3
+ import { base } from ' $app/paths' ;
3
4
4
5
export let targetPath = ' /einzelverssynopse' ;
5
6
44
45
class =" flex max-w-full items-baseline gap-1 my-3"
45
46
on:submit |preventDefault ={(e ) => {
46
47
if (validateMinMax (thirties ) && validateMinMax (verse )) {
47
- goto (` ${targetPath }/${thirties .value }/${verse .value }${additional ? ' -' + additional : ' ' } ` );
48
+ goto (
49
+ ` ${base }${targetPath }/${thirties .value }/${verse .value }${additional ? ' -' + additional : ' ' } `
50
+ );
48
51
}
49
52
}}
50
53
>
Original file line number Diff line number Diff line change 3
3
import { SlideToggle } from ' @skeletonlabs/skeleton' ;
4
4
import VerseSelector from ' $lib/components/VerseSelector.svelte' ;
5
5
import { afterNavigate } from ' $app/navigation' ;
6
+ import { base } from ' $app/paths' ;
6
7
7
8
/** @type {import('./$types').PageData} */
8
9
export let data;
113
114
{#if ! (parseInt (thirties) === 1 && parseInt (verse) === 1 )}
114
115
< a
115
116
class = " anchor"
116
- href= " / einzelverssynopse/{parseInt(verse) === 1
117
+ href= " {base} einzelverssynopse/{parseInt(verse) === 1
117
118
? parseInt(thirties) - 1
118
119
: thirties}/{parseInt(verse) === 1 ? 30 : parseInt(verse) - 1}"
119
120
>
123
124
{#if ! (parseInt (thirties) === 827 && parseInt (verse) === 30 )}
124
125
< a
125
126
class = " anchor"
126
- href= " / einzelverssynopse/{parseInt(verse) === 30
127
+ href= " {base} einzelverssynopse/{parseInt(verse) === 30
127
128
? parseInt(thirties) + 1
128
129
: thirties}/{parseInt(verse) === 30 ? 1 : parseInt(verse) + 1}"
129
130
>
You can’t perform that action at this time.
0 commit comments