Skip to content

A non pre-rendered page shows up instead of 404 page #32

@midhunpm

Description

@midhunpm

Hi,
I am new to Ember and Prember. I have an application which I pre-render using prember during build time. All possible urls of the application are pre-rendered during build. However, when I try a url which is not in the pre-render list, the browser serves a page instead of a 404 page.
There are two scenarios:

  • I am on the home page, and there is a link that points to this unlisted page. My guess was that clicking the link would serve a 404 page but instead it served a page with some available data.
    Clicking the link actually transistioned the route from the landing page to this non pre-rendered url.
  • If land directly to this unlisted url or do a hard refresh, then I get a 404 page.
    How do I set this up to always serve a 404 page if a non pre-rendered page is requested?
    How do I make sure Ember app or fastboot doesn't do a network request and serve the non pre-rendered page?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions