Fix for #120 ignore trailing slash

This commit is contained in:
Josef Citrine 2017-05-19 08:04:00 +01:00
parent 2de284963e
commit fb50ef06ab

View file

@ -81,8 +81,8 @@ ponyfm.run [
] ]
ponyfm.config [ ponyfm.config [
'$locationProvider', '$stateProvider', 'AngularyticsProvider', '$httpProvider', '$sceDelegateProvider', 'markedProvider' '$locationProvider', '$stateProvider', 'AngularyticsProvider', '$httpProvider', '$sceDelegateProvider', 'markedProvider', '$urlMatcherFactoryProvider'
(location, state, analytics, $httpProvider, $sceDelegateProvider, markedProvider) -> (location, state, analytics, $httpProvider, $sceDelegateProvider, markedProvider, $urlMatcherFactoryProvider) ->
if window.pfm.environment == 'local' if window.pfm.environment == 'local'
$httpProvider.interceptors.push [ $httpProvider.interceptors.push [
@ -127,6 +127,7 @@ ponyfm.config [
del: (text) -> del: (text) ->
text text
$urlMatcherFactoryProvider.strictMode(false)
# Errors # Errors
state.state 'errors-404', state.state 'errors-404',