Skip to content

Commit

Permalink
feat: AssetManager
Browse files Browse the repository at this point in the history
Append/Create
  • Loading branch information
lee-to committed Nov 29, 2024
1 parent 6a28d33 commit 7ff62cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AssetManager/src/Traits/HasLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function getLink(): string
{
$link = $this->link;

if (! \is_null($this->getVersion())) {
if (!str_contains($link, '&v=') && !str_contains($link, '?v=') && ! \is_null($this->getVersion())) {
$separator = str_contains($link, '?') ? '&' : '?';

return $link . $separator . 'v=' . $this->getVersion();
Expand Down

0 comments on commit 7ff62cf

Please sign in to comment.