Avoid hardcoding URIs
This commit is contained in:
parent
81e4ea86f6
commit
b21eb0b04d
@ -22,7 +22,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="my-4 flex gap-x-2">
|
<div class="my-4 flex gap-x-2">
|
||||||
<a href="/balance-assertions/new" class="btn-primary pl-2" onclick="return openLinkInNewWindow(this);">
|
<a :href="$router.resolve({name: 'balance-assertions-new'}).fullPath" class="btn-primary pl-2" onclick="return openLinkInNewWindow(this);">
|
||||||
<PlusIcon class="w-4 h-4" />
|
<PlusIcon class="w-4 h-4" />
|
||||||
New assertion
|
New assertion
|
||||||
</a>
|
</a>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<div class="my-4 flex gap-x-2 items-center">
|
<div class="my-4 flex gap-x-2 items-center">
|
||||||
<!-- Use a rather than RouterLink because RouterLink adds its own event handler -->
|
<!-- Use a rather than RouterLink because RouterLink adds its own event handler -->
|
||||||
<a href="/journal/new-transaction" class="btn-primary pl-2" onclick="return openLinkInNewWindow(this);">
|
<a :href="$router.resolve({name: 'journal-new-transaction'}).fullPath" class="btn-primary pl-2" onclick="return openLinkInNewWindow(this);">
|
||||||
<PlusIcon class="w-4 h-4" />
|
<PlusIcon class="w-4 h-4" />
|
||||||
New transaction
|
New transaction
|
||||||
</a>
|
</a>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<div class="my-4 flex gap-x-2 items-center">
|
<div class="my-4 flex gap-x-2 items-center">
|
||||||
<!-- Use a rather than RouterLink because RouterLink adds its own event handler -->
|
<!-- Use a rather than RouterLink because RouterLink adds its own event handler -->
|
||||||
<a href="/journal/new-transaction" class="btn-primary pl-2" onclick="return openLinkInNewWindow(this);">
|
<a :href="$router.resolve({name: 'journal-new-transaction'}).fullPath" class="btn-primary pl-2" onclick="return openLinkInNewWindow(this);">
|
||||||
<PlusIcon class="w-4 h-4" />
|
<PlusIcon class="w-4 h-4" />
|
||||||
New transaction
|
New transaction
|
||||||
</a>
|
</a>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<div class="my-4 flex gap-x-2 items-center">
|
<div class="my-4 flex gap-x-2 items-center">
|
||||||
<!-- Use a rather than RouterLink because RouterLink adds its own event handler -->
|
<!-- Use a rather than RouterLink because RouterLink adds its own event handler -->
|
||||||
<a href="/journal/new-transaction" class="btn-primary pl-2" onclick="return openLinkInNewWindow(this);">
|
<a :href="$router.resolve({name: 'journal-new-transaction'}).fullPath" class="btn-primary pl-2" onclick="return openLinkInNewWindow(this);">
|
||||||
<PlusIcon class="w-4 h-4" />
|
<PlusIcon class="w-4 h-4" />
|
||||||
New transaction
|
New transaction
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user