add urls correctly

change the pasre context fuction to add urls correctly