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

Redirect to a custom path #42

Open
GugaAraujo opened this issue Oct 10, 2023 · 1 comment
Open

Redirect to a custom path #42

GugaAraujo opened this issue Oct 10, 2023 · 1 comment

Comments

@GugaAraujo
Copy link

I would like to direct the links contained in a page notion to a custom path in my vue application.
In a similar way to what happens on the page:

https://vue3-notion.vercel.app/page/de51eee9-6dc3-4698-8484-94e04c0ec2fe

Currently, when I click on a link in the content, I am redirected to my app's route concatenated to the page ID.
I need an example of how I can configure this, or if I can get an event to work this dynamic.

example:
https://root.com/cusom-path/notionId

Does anyone know a solution?

@BeanWei
Copy link

BeanWei commented Oct 19, 2023

You can setup the mapPageUrl config, see https://github.com/zernonia/vue3-notion/blob/HEAD/demo/nuxt/composables/useProps.ts

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

2 participants