Get board from pathname instead of X.