기본 콘텐츠로 건너뛰기

라벨이 hashbang인 게시물 표시

iron-router에서 /#/(hashbang) 을 사용할때 주의점( ex. verify-email등)

iron-router 적응 중인데 역시 대세다. 최근 server-side도 반영되어 구 router package에서 안심하고 넘어와도 되겠다 싶었다. E-mail 인증( http://spectrumdig.blogspot.kr/2013/10/meteor-e-mail.html )을 구현해 놓았는데 이게 실제로 해보니까 iron-router 에선 제대로 되지 않는다. 찾아보니 Server 쪽에서 해당 URL이 들어올때 패치하는 방법이 있다. https://github.com/EventedMind/iron-router/issues/3#issuecomment-20917649 Server 아래 Route 관련 부분에 Accounts.urls.resetPassword = (token) ->   Meteor.absoluteUrl "reset-password/#{token}" Accounts.urls.verifyEmail = (token) ->   Meteor.absoluteUrl "verify-email/#{token}" Accounts.urls.enrollAccount = (token) ->   Meteor.absoluteUrl "enroll-account/#{token}" 이런 식으로 넣어주면 된다.