trestle icon indicating copy to clipboard operation
trestle copied to clipboard

path after login

Open okliv opened this issue 7 years ago • 1 comments

hi!

i would suggest to add to configuration file something like this:

Trestle.configure do |config|

  config.home = '/dashboard' #relative to config.path path 

end

or is this already somehow can be achieved?

okliv avatar Jan 13 '18 11:01 okliv

I'll have a bit more a think about what options are appropriate to provide here, and whether they belong in trestle core or trestle-auth.

However if you are building out a custom dashboard, you may wish to mount it at the path /, which will override the existing 'dashboard' which is really just a placeholder for a future dashboard DSL.

Trestle.admin(:dashboard, path: "/") do
  ...
end

spohlenz avatar Jan 17 '18 00:01 spohlenz