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

Add a new element in the event object #52

Open
Limerio opened this issue Aug 23, 2023 · 1 comment
Open

Add a new element in the event object #52

Limerio opened this issue Aug 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Limerio
Copy link

Limerio commented Aug 23, 2023

for the event object, add a redirect keyword with a string link parameter for example :

event RedirectToDocs {
  redirect = "/docs"
}

or an url :

event RedirectToDocs {
  redirect = "https://bpp.gitbook.io/buckshot++/"
}

soon if it's possible add intelli-sence for the target IDE (Visual Studio Code or Sublime Text), detect link pages when the application have a page name "docs" for example and the developer write "do" the IDE give "/docs"

@Vic92548 Vic92548 added the enhancement New feature or request label Aug 23, 2023
@Vic92548
Copy link
Collaborator

Maybe it could be better to create a function for this so it would like the following for example:
event RedirectToDocs { redirect("https://bpp.gitbook.io/buckshot++/") }
So it would maybe be easier to implement custom logic like that:
event RedirectToDocs { if(session.user.name == "a"){ redirect("https://bpp.gitbook.io/buckshot++/a") }else{ redirect("https://bpp.gitbook.io/buckshot++/b") } }

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

No branches or pull requests

2 participants