Skip to content

using the + sign in a url makes it refresh constantly in development mode #22099

@paperclover

Description

@paperclover

What version of Next.js are you using?

v10.0.7-canary.7

What version of Node.js are you using?

v15.7.0

What browser are you using?

Chrome

What operating system are you using?

Linux 5.4

How are you deploying your application?

next dev (development issue)

Describe the Bug

when using + in a url (filename like /pages/hello+world.js) in development mode, the page will refresh every few seconds as if i was changing the file, even if im not.

Expected Behavior

either reject the invalid character + (they technically arent allowed in urls, but work fine), or not constantly refresh the page

To Reproduce

  1. project prep
yarn create next-app test
cd test
cp pages/index.js pages/hello+world.js
yarn dev
  1. then open localhost:3000/hello+world
  2. open developer tools, enable preserve log, and watch the page reload a ton

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions