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

Change landingPage and identifier to us the canonical url for a given item #13

Merged
merged 3 commits into from
Nov 29, 2021

Conversation

sonofflynn89
Copy link
Collaborator

Part of https://devtopia.esri.com/dc/hub/issues/2571

Previously, all items were routed to /datasets/:id, resulting in invalid urls.

Examples of new urls:

  • Hub Pages will be routed to /pages/:id_or_slug
  • documents will be routed to /documents/:id_or_slug
  • datasets will be routed to /datasets/:id_or_slug

… item

For example:

Hub Pages will be routed to /pages/id_or_slug,
documents will be routed to /documents/id_or_slug,
datasets will be routed to /datasets/id_or_slug,
etc.

Previously, all items were routes to /datasets/id_or_slug, resulting in invalid urls
@@ -45,7 +45,7 @@ export = class OutputDcatUs11 {
dcatConfig = _.get(siteModel, 'data.feeds.dcatUS11');
}

const { stream: dcatStream, dependencies } = getDataStreamDcatUs11(hostname, dcatConfig);
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this still could break the changes I made to use the hostname when the custom domain and the site item's url do not match, just as a heads up.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@drspacemanphd thanks for catching that! I made changes accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

@sonofflynn89 sonofflynn89 merged commit 02e672c into main Nov 29, 2021
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

Successfully merging this pull request may close these issues.

2 participants