pepega페페가 – 17-18 Jan 17

Hi I am using express and EJS, and creating a link shortener, when the link gets generated, I added this icon next to it, when clicked, it should lead to chart.ejs and therefore it renders the info about that link, like the clicks, url, etc... But in my express route, I need to query db for url data first, call chart.ejs with app.render("chart", {urldata}) and inside of that file I render data from urlData that we fetched from db, now how can I, when the form is submitted, pass in the url string, so that route handler will actually know what url to look for in mongodb? Ik its messy but im trying out express for the first time
UU
Unknown User455d ago