This is closed from tomorrow (Wed 10th) for up to a fortnight - link
The diversion doesn't look brilliant but unless you want to ride up the hill to Langside/Smeaton Shaw there isn't a lot of other options. If you're heading to Musselburgh or Dalkeith you're probably as well just staying on Salter's Road the whole way and ignore the railway path.