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

"Short links" to external services under separate subdomain #98

Open
Wituareard opened this issue Feb 19, 2024 · 12 comments
Open

"Short links" to external services under separate subdomain #98

Wituareard opened this issue Feb 19, 2024 · 12 comments
Labels
enhancement New feature or request

Comments

@Wituareard
Copy link
Collaborator

It could be useful to offer easier to remember redirects to external services, most importantly Discord, under a separate subdomain (to avoid confusion about the redirect). For example, it could be something like go.pauseai.info/discord to join the Discord. I'd suggest redirecting the root URL and unknown URLs to a page with a list of the most useful redirects.

I'm not sure how this should be implemented yet. There are externals services like https://short.io/ that offer a limited number of redirects under your own domain for free, but then you are dependent on their goodwill and/or their ability to export data. If the redirects are implemented through the SvelteKit load function, I'm not sure how the preload-on-hover feature plays together with that if they are linked somewhere. Maybe we could start with the Netlify _redirects file?

@Wituareard Wituareard added the enhancement New feature or request label Feb 19, 2024
@joepio
Copy link
Collaborator

joepio commented Feb 19, 2024

Good idea! I don't think we need the subdomain, tbh - only makes it longer.

We can have a /discord and /mail or whatever. Indeed, the _redirects file is a great option!

joepio added a commit that referenced this issue Feb 19, 2024
@Wituareard
Copy link
Collaborator Author

Wituareard commented Feb 19, 2024

Hm, I think a subdomain makes sense to avoid the possible confusion of being redirected when clicking on a normal pauseai.info link, where you'd expect that it takes you to the website.

@joepio
Copy link
Collaborator

joepio commented Feb 19, 2024

We could internally keep using the direct external links. These are faster anyways.

@Wituareard
Copy link
Collaborator Author

Sure, but if someone sends me a normal pauseai.info link, or I see it somewhere else, I'd expect it to take me to a pauseai.info website.

@Wituareard
Copy link
Collaborator Author

Okay doesn't seem to work, probably because the function already matches /*

@joepio
Copy link
Collaborator

joepio commented Feb 19, 2024

My bad, I used the full .org URL instead of just the /discord

@Wituareard
Copy link
Collaborator Author

joepio added a commit that referenced this issue Feb 21, 2024
@joepio
Copy link
Collaborator

joepio commented Feb 26, 2024

Not sure why this _redirects file isn't working yet:

https://pauseai.org/* https://pauseai.info/:splat 301!
/discord https://discord.gg/2XXWXvErfA

@Wituareard
Copy link
Collaborator Author

Wituareard commented Feb 27, 2024

I suspect it's because the edge function matches /.* minus /pagefind/.* per the generated manifest.json and gets priority over the redirects.

joepio added a commit that referenced this issue Feb 27, 2024
@joepio
Copy link
Collaborator

joepio commented Feb 27, 2024

I tried to revert their order

@Wituareard
Copy link
Collaborator Author

Wituareard commented Feb 27, 2024

These are the redirects I'd propose. Especially for the more generic ones, I still really think a subdomain would help to avoid confusion. A few ideas: go.pauseai.info, to.pauseai.info, link.pauseai.info

{
    'shop': 'https://pauseai-shop.fourthwall.com/',
    'store': 'https://pauseai-shop.fourthwall.com/',
    'merchandise': 'https://pauseai-shop.fourthwall.com/',
    'merch': 'https://pauseai-shop.fourthwall.com/',
    'bunq': 'https://bunq.me/pauseai',
    'discord': 'https://discord.gg/2XXWXvErfA',
    'x': 'https://x.com/PauseAI',
    'twitter': 'https://twitter.com/PauseAI',
    'linkedin': 'https://www.linkedin.com/company/pauseai',
    'facebook': 'https://www.facebook.com/PauseAI/',
    'tiktok': 'https://www.tiktok.com/@pauseai',
    'instagram': 'https://www.instagram.com/pause_ai/',
    'youtube': 'https://www.youtube.com/@PauseAI',
    'github': 'https://github.com/joepio/pauseai',
    'figma': 'https://www.figma.com/community/file/1233064002969152026',
    'drive': 'https://drive.google.com/drive/folders/1bQ_MZ8giK-Mee4ABkO0BgcFInaXruNpa?usp=sharing',
    'calendar': 'https://calendar.google.com/calendar/u/0?cid=Y19mNWE4YWYyMDZlNjM1ODc2NjVjNmU4MzAzOTgzZmVmYWYzYTBjNjE0NGRiMGFhNDljOTcwZWZhNTEwYTNkODY3QGdyb3VwLmNhbGVuZGFyLmdvb2dsZS5jb20'
}

@Wituareard
Copy link
Collaborator Author

Wituareard commented Feb 27, 2024

Using the load function works fine btw, so you'd just have to configure it with Netlify, and it could be handled by SvelteKit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants