Fix cart sign-in button in app-level template override
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s
The cart app has its own _cart.html that overrides the shared one. The shared copy was fixed but this one still had hx-get on the cross-origin login link. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -217,23 +217,13 @@
|
|||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set href=login_url(request.url) %}
|
{% set href=login_url(request.url) %}
|
||||||
<div
|
<div class="w-full flex">
|
||||||
class="w-full flex"
|
|
||||||
>
|
|
||||||
<a
|
<a
|
||||||
href="{{ href }}"
|
href="{{ href }}"
|
||||||
hx-get="{{ href }}"
|
class="w-full cursor-pointer flex flex-row items-center justify-center p-3 gap-2 rounded bg-stone-200 text-black hover:bg-stone-300 transition"
|
||||||
hx-target="#main-panel"
|
|
||||||
hx-select ="{{hx_select_search}}"
|
|
||||||
hx-swap="outerHTML"
|
|
||||||
hx-push-url="true"
|
|
||||||
aria-selected="{{ 'true' if local_href == request.path else 'false' }}"
|
|
||||||
class="w-full cursor-pointer flex flex-row items-center justify-center p-3 gap-2 rounded bg-stone-200 text-black {{select_colours}}"
|
|
||||||
data-close-details
|
|
||||||
>
|
>
|
||||||
<i class="fa-solid fa-key"></i>
|
<i class="fa-solid fa-key"></i>
|
||||||
<span>sign in or register to checkout</span>
|
<span>sign in or register to checkout</span>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user