Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Conversation

@benolot
Copy link
Collaborator

@benolot benolot commented Aug 14, 2019

Let me know if this works... or not. I don't know angular.

#73

{ path: 'video', component: VideoSearchComponent },

{ path: 'discord', component: DiscordRedirect },
{ path: 'games/:share_key', redirectTo: '/player/:share_key' },
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be in a component like the discord redirect?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The discord redirect is because he's doing special logic to change the window.location. This redirect is in app, so no need.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but I just thought I'd propose it for consistencies sake.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say nah. If both the routes go to the same component, there's some duplicated code. It's an extremely minor thing, but I think it's probably better to have the redirect chain so that if you for some reason change the component someday, you only have to do it in one place and it changes for both.

@benolot benolot changed the title Move /games/username to /player/username Issue #73 - Move /games/username to /player/username Aug 14, 2019
@synap5e
Copy link
Collaborator

synap5e commented Aug 14, 2019

A problem I see with this is people can have multiple share links, so /player isn't actually correct here.

Most share links are in the format -, but people can generate separate links with some some just doing just one account, some doing others, and some doing all games including customs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants