velsa / notehost

Free Hosting for Notion Sites!
MIT License
87 stars 8 forks source link

Tried multiple times, somehow Notion doesn't work. Opens DOMAIN/FULL NOTION URL which is incorrect and shows "no page found" #32

Closed ednevsky closed 1 month ago

ednevsky commented 3 months ago

Opens the following link:

image

ednevsky commented 3 months ago

image

ednevsky commented 3 months ago

This is the full link Notion ID link in the script in this particular example: Jared-diy-1e4462be3f9c46619956e8fb5b1521e3

ednevsky commented 3 months ago

Any ideas on how to fix this? Really wanted to use Notehost for a few sites. @velsa

velsa commented 3 months ago

Hey. You need to use only the HEX part of the link. Notion prepends a page name in front of it.

Just use 1e4462be3f9c46619956e8fb5b1521e3 as an ID and it should work.

ednevsky commented 3 months ago

@velsa just tried this (edited slugtopage in site-config and ran npm deploy of course) and it still opens the same type of link (see above). Any other thoughts on why this might be happening? I'm running out of options to try because I have already redone this from scratch. Thanks for the help btw!

Anything else I might try?

ednevsky commented 3 months ago

Super happy to promote this btw if I figure it out for myself, a lot of people might benefit from a more supported version of fruition.

DudeThatsErin commented 3 months ago

@velsa just tried this (edited slugtopage in site-config and ran npm deploy of course) and it still opens the same type of link (see above). Any other thoughts on why this might be happening? I'm running out of options to try because I have already redone this from scratch. Thanks for the help btw!

Anything else I might try?

When you updated it did you run npm run start again to push the changes to CloudFlare?

DudeThatsErin commented 3 months ago

Actually, it works for me. image Clear your cookies.

ednevsky commented 3 months ago

Does work now for me too! Awesome. WIll be promoting this now.