Skip to content

Use buttons instead of javascript: links #1941

Closed
@damianstasik

Description

@damianstasik

New Issue Checklist

Issue Description

We are now getting warning messages about usage of deprecated javascript: URLs:

Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed "javascript:;".

Steps to reproduce

Navigate between random pages and you will see this warning. The solution is to replace all of those links with proper buttons which would make the codebase one step closer to the modern React version.

Actual Outcome

Warning

Expected Outcome

No warning, no javascript: links in the code, no anchors in places where buttons should be used.

Environment

All

Dashboard

  • Parse Dashboard version: n/a
  • Browser (Safari, Chrome, Firefox, Edge, etc.): n/a
  • Browser version: n/a

Server

  • Parse Server version: n/a
  • Operating system: n/a
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): n/a

Database

  • System (MongoDB or Postgres): n/a
  • Database version: n/a
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): n/a

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$20Bounty applies for fixing this issue (Parse Bounty Program)type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions