For the final project, I am trying to implement a flask application where people may write diaries and read others' diaries. I would like to create a unique URL for each user that shows the diaries that user published, however, I keep getting this HTTP 404 Not Found Error as I test-run the application. I think that is because every time I `flask run` the application and open up the web server, it is routed to https://ide50-chanchunhei.cs50.io/ instead of https://ide50-chanchunhei.cs50.io/index/<username> . Anyways, my code is as follow:

Application.py

    @app.route("/index/<username>")
    @login_required
    def index(username):
        """Cover page: read your own diaries."""
    
        # lock the cover page until writer published first blog entry
        diaries = db.execute("SELECT diaries, date FROM diaries WHERE username = :username ORDER by date DESC", username=session.get("user_id"))
        if len(diaries) == 0:
         return dumbo("Welcome to FoToM!")
    
     return render_template("index.html", diaries=diaries, username=session.get("user_id"))

For your reference, my code, unlike Problem Set 7, does not have any `@app.route("/")` now. And these are some online resources I made references to in implementing unique URLs: [Link1](http://flask.pocoo.org/docs/0.12/quickstart/), [Link2](http://flask.pocoo.org/docs/0.12/api/#flask.url_for), [Link3](https://stackoverflow.com/questions/20261276/flask-creating-a-unique-profile-page-for-each-user), and [Link4](https://stackoverflow.com/questions/37719685/flask-app-the-requested-url-was-not-found-on-the-server). Thanks in advance!