Skip to content

Commit

Permalink
Add #[Url] attribute support
Browse files Browse the repository at this point in the history
Fixes #21
  • Loading branch information
PhiloNL committed Aug 2, 2024
1 parent 50cbd4b commit 4238831
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/wire-extender.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ function getLivewireUpdateUri()

function getEmbedUri()
{
return document.querySelector('[data-embed-uri]')?.getAttribute('data-embed-uri') ?? getUri('livewire/embed');
const base = document.querySelector('[data-embed-uri]')?.getAttribute('data-embed-uri') ?? getUri('livewire/embed');
const queryString = window.location.search;

return base + queryString;
}

function injectLivewire()
Expand Down

0 comments on commit 4238831

Please sign in to comment.