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

[plugin-architecture] Investigate ways to improve SEO #2788

Open
victorgcramos opened this issue Jun 15, 2022 · 1 comment
Open

[plugin-architecture] Investigate ways to improve SEO #2788

victorgcramos opened this issue Jun 15, 2022 · 1 comment

Comments

@victorgcramos
Copy link
Member

Our current politeia app-shell from the new plugin architecture has no SEO tags. Ideally we should provide a better way to display link previews for proposals details, and maybe find a way to render at least the proposal title.

Also, we should:

@victorgcramos victorgcramos self-assigned this Jun 21, 2022
@victorgcramos victorgcramos removed their assignment Jun 28, 2022
@victorgcramos
Copy link
Member Author

In order to provide dynamic document titles and meta tags, we should provide an index.html with those tags on the first render. It's not possible to generate those metatags after executing the regular fetching like we currently do because our application runs client-side rendering. (See twitter cards example)

This is why most people recommend server-side rendering for a better SEO.

We can create a new app that renders html previews using SSR, and proxy the /share route to it. This way we can share links like https://proposals.decred.org/share/record/:token with the correct SEO preview. When user navigates to the share URL, it will be redirected to proposals app.

That's the easiest way I could think of without adding too much code.

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

1 participant