Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow external links #7

Open
agustinprod opened this issue Sep 17, 2019 · 3 comments
Open

Allow external links #7

agustinprod opened this issue Sep 17, 2019 · 3 comments

Comments

@agustinprod
Copy link

Currently there is no way to add a link to anything outside nova.

@bulldog5046
Copy link

It actually looks like the feature is in the src and blade. Try adding ->external(true) to the options.

@bulldog5046
Copy link

bulldog5046 commented Oct 26, 2019

Alright, i was slightly wrong. You also need to add this:

public function external(bool $external)
{
return $this->withMeta(['external' => $external]);
}

to NovaLinkResource.php but it works then :)

@nadeem-khan
Copy link

@bulldog5046 it still doesnt work with:

 public function tools() {
        return [
                    (new NovaLinkResource())
                    ->name('Sort Content')
                    ->to('/sortcontent')
                    ->external(true),
        ];
    }

After adding external() function in NovaLinkResource.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants