   initialize: ({ @auctionName, @auctionId, @auctionImage, @auctionEndat }) ->
 
     # Reminder doesn't show on auction page
-    if window.location.pathname == @auctionId
+    if window.location.pathname == "/auction/#{@auctionId}"
       return
     # Reminder only shows if 24 hours until end
     diff = moment(@auctionEndat).diff(moment(),'hours')

      @$('.modal-dialog').addClass('is-static-open')
    else
      cookieValue = "#{@auctionName}|#{@auctionId}|#{@auctionImage}|#{@auctionEndat}"
      cookieExpiration = moment.duration(moment(@offsetEndAtMoment).diff(moment()))._milliseconds
      Cookies.set('firstAuctionReminderSeen', cookieValue, { expires: cookieExpiration })
      activate = => @$dialog.addClass("is-spring-in")
      _.delay(activate,5000)


AuctionClock = require './clock/view.coffee'

class AuctionReminderModal extends Backbone.View
  cookieExpiration: 600

  events: ->
    'click .modal-close': 'close'
