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

Add metatags to portals for better SEO #2150

Closed
robyngit opened this issue Jun 26, 2023 · 3 comments
Closed

Add metatags to portals for better SEO #2150

robyngit opened this issue Jun 26, 2023 · 3 comments
Assignees
Labels
enhancement pdg Permafrost Discovery Gateway Priority: High
Milestone

Comments

@robyngit
Copy link
Member

Here is how our portals show up in search results:

Screenshot 2023-06-26 at 10 35 21

We should include a title, description, etc. for portal pages so that search results give useful information about what each portal is.

Currently, we don't update meta tags dynamically in MetacatUI (see #1723). At a minimum, we need to add meta tags when a portal is loaded, and remove them when someone navigates away from the portal.

@robyngit robyngit added enhancement Priority: High pdg Permafrost Discovery Gateway labels Jun 26, 2023
@robyngit robyngit added this to the 2.25.0 milestone Jun 26, 2023
@robyngit robyngit self-assigned this Jun 26, 2023
@mbjones
Copy link
Member

mbjones commented Jun 26, 2023

Wow, yes, great catch @robyngit

@robyngit
Copy link
Member Author

It was Jen Moss and two teachers who work with her who caught this! :)

robyngit added a commit that referenced this issue Jun 28, 2023
- Also add "description" to AppModel
- Use the appModel's description for the default description meta tag

Issue #2150
@robyngit
Copy link
Member Author

This is now fixed in the develop branch - both the document title and description meta tags are updated for all portal pages. I'm curious to see if this will fix how the portals show up in searches.

Part of the issue may be that when someone navigates to e.g. arcticdata.io/catalog/portals/permafrost, the app needs time to look up the most recent portal document that has the permafrost label, then to parse it and get the portal name & description. During that time, the website shows the "loading..." text, which is also the text that currently appears in search results.

If this update does not fix how portals are displayed in search results, then we should open a new issue, as this might require a more complex fix like coming up with new ways to find the portal document.

robyngit added a commit that referenced this issue Jun 29, 2023
- Also add "description" to AppModel
- Use the appModel's description for the default description meta tag

Issue #2150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement pdg Permafrost Discovery Gateway Priority: High
Projects
None yet
Development

No branches or pull requests

2 participants