Empty pathMatch for Correct Path Calculation

Beginner

In this project, you will learn how to fix a bug in the `vue-router-3.1.5` library. The bug is related to the `fillParams` function, which is responsible for filling in the parameters in the URL path. When the `pathMatch` parameter is an empty string, it can affect the calculation of the correct path.

JavaScriptVue.js

Introduction

In this project, you will learn how to fix a bug in the vue-router-3.1.5 library. The bug is related to the fillParams function, which is responsible for filling in the parameters in the URL path. When the pathMatch parameter is an empty string, it can affect the calculation of the correct path.

👀 Preview

finished

ðŸŽŊ Tasks

In this project, you will learn:

  • How to locate the fillParams function in the vue-router-3.1.5/src/util/params.js file
  • How to modify the fillParams function to address the issue with empty pathMatch
  • How to rebuild the vue-router project with the updated fillParams function
  • How to test the fix by refreshing the browser window and verifying the correct behavior of the address bar

🏆 Achievements

After completing this project, you will be able to:

  • Identify and fix bugs in a third-party library
  • Rebuild a project after making code changes
  • Test a fix to ensure the desired behavior is achieved

Teacher

labby

Labby

Labby is the LabEx teacher.