Skip to content

Adds direct links to various Flarum actions (plus composer url auto-fill parameters).

License

Notifications You must be signed in to change notification settings

Ziiven/direct-links

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Direct Links

This extension adds direct links to various Flarum actions:

  • /login will redirect to homepage and open the Log In modal
  • /signup will redirect to homepage and open the Sign Up modal
  • /forgot will redirect to homepage and open the Forgot Password modal
  • /composer will redirect to the all discussions page and open the new discussion composer box

Additionally, only for the composer, you may append ?title=, ?content= and/or ?primary_tag=slug parameters to /composer to define the default values in the editor. This is useful for share features or bookmarklets.

Sample url with auto-fill parameters:

/composer?title=test&primary_tag=general&content=this is some content

Installation

composer require zerosonesfun/direct-links

Updating

composer update zerosonesfun/direct-links
php flarum migrate
php flarum cache:clear

Removing

composer remove zerosonesfun/direct-links

Links

Credits

Original author: Clark Winkelmann (and possibly others)

About

Adds direct links to various Flarum actions (plus composer url auto-fill parameters).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 71.8%
  • TypeScript 18.4%
  • PHP 9.8%