Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
486 stars 312 forks source link

Page editing carrying over to all pages #104

Closed kaylakirzinger closed 5 years ago

kaylakirzinger commented 5 years ago

Describe the bug Created a new page. Edited content on new page. It ended up deleting all content on the rest of my pages and turning every page into the page I had edited. See video: https://www.screencast.com/t/6fYer8mKLD

To Reproduce Steps to reproduce the behavior:

  1. Create new page
  2. Edit content in new page
  3. Click existing page
  4. Confirm that content of existing pages was overwritten by new pages

Expected behavior Pages edit separately and don't overwrite.

Screenshots Video: https://www.screencast.com/t/6fYer8mKLD

Desktop (please complete the following information):

azaslonov commented 5 years ago

Hi Kayla, thanks for the explanation and video. We'll investigate.

azaslonov commented 5 years ago

Kayla, could you please copy all the errors from F12 console of your browser when this issue happens?

kaylakirzinger commented 5 years ago

There really aren't any errors as I switch from page to page. I got this once:

image

Refused to apply style from 'https://ams-dev-scus-core.developer.azure-api.net/styles/customizations.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. gettingstarted:1 Refused to apply style from 'https://ams-dev-scus-core.developer.azure-api.net/styles/theme.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. gettingstarted:1 Refused to apply style from 'https://ams-dev-scus-core.developer.azure-api.net/editors/styles/paperbits.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Here is another video: https://www.screencast.com/t/Rmc0EVofpfpW

azaslonov commented 5 years ago

Understood. Those errors that you see most likely not related to your issue. Thanks again for all the information, we'll keep you posted.

mikebudzynski commented 5 years ago

@kaylakirzinger We are not able to reproduce the issue. We'll try to root cause the problem through our logs and then we will update you with our findings.

kaylakirzinger commented 5 years ago

Thank you! I can share with someone over Teams or something any time, or let me know if there's anything else I can do to assist.

mikebudzynski commented 5 years ago

@kaylakirzinger

The problem with your developer portal is that you added the Getting started page as the Default layout instead.

Layout is a template, which defines how pages are displayed within it and is matched against a URL pattern. In this case, the default layout is matched against /*, so any page will use it unless it's overridden by another layout. Also, this Default layout now doesn't have the Content block, which is supposed to display contents of a page. Because of that it's just a static layout that displays the same information regardless of a page it should contain.

You can fix the problem the following way:

  1. Go to Layouts and deleting the Default layout.
  2. Create a new layout with the URL template /*. Make sure the Content block is there.
  3. Go to Pages and editing the Getting started page however you wish.

We'll make the menu more descriptive to help avoid such mistakes in future.

Please, let us know if you manage to solve the problem. If you have more feedback, we'd be happy to hear it as well.