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

Ability to override default front page route. #456

Open
1 task
Decipher opened this issue Feb 20, 2022 · 0 comments
Open
1 task

Ability to override default front page route. #456

Decipher opened this issue Feb 20, 2022 · 0 comments
Labels
enhancement New feature or request module: router Related to the `druxt-router` module
Milestone

Comments

@Decipher
Copy link
Member

Is your feature request related to a problem? Please describe.
As a user I want to manually set the front page route in my nuxt.config.js so I can have different front pages per frontend.

Describe the solution you'd like

  • Add 'frontpage' option to the DruxtRouter module options.
    export default {
      druxt: {
        baseUrl: 'https://demo-api.druxtjs.org',
        router: {
          frontpage: '/node/1'
        }
      }
    }
    • frontpage: '/path/alias'

Describe alternatives you've considered

  • You can already create a pages/index.vue and render anything you want, including <DruxtRouter path="/node/1" />

Additional context
N/A

@Decipher Decipher added enhancement New feature or request module: router Related to the `druxt-router` module labels Feb 20, 2022
@Decipher Decipher added this to the 1.1.0 milestone Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module: router Related to the `druxt-router` module
Projects
None yet
Development

No branches or pull requests

1 participant