1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

Require trailing slash in auth URLs.

This commit is contained in:
Simo Kinnunen 2014-07-16 11:38:14 +09:00
parent b19e1784ab
commit 2d726a4f75
4 changed files with 8 additions and 8 deletions

View file

@ -64,10 +64,10 @@ module.exports = function(options) {
}) })
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.redirect('/auth/ldap') res.redirect('/auth/ldap/')
}) })
app.get('/auth/ldap', function(req, res) { app.get('/auth/ldap/', function(req, res) {
res.render('index') res.render('index')
}) })

View file

@ -63,10 +63,10 @@ module.exports = function(options) {
}) })
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.redirect('/auth/mock') res.redirect('/auth/mock/')
}) })
app.get('/auth/mock', function(req, res) { app.get('/auth/mock/', function(req, res) {
res.render('index') res.render('index')
}) })

View file

@ -5,12 +5,12 @@ define(['./app'], function(app) {
, function($routeProvider, $locationProvider) { , function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true) $locationProvider.html5Mode(true)
$routeProvider $routeProvider
.when('/auth/ldap', { .when('/auth/ldap/', {
templateUrl: '/static/auth/ldap/views/signin.html' templateUrl: '/static/auth/ldap/views/signin.html'
, controller: 'SignInCtrl' , controller: 'SignInCtrl'
}) })
.otherwise({ .otherwise({
redirectTo: '/auth/ldap' redirectTo: '/auth/ldap/'
}) })
} }
]) ])

View file

@ -5,12 +5,12 @@ define(['./app'], function(app) {
, function($routeProvider, $locationProvider) { , function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true) $locationProvider.html5Mode(true)
$routeProvider $routeProvider
.when('/auth/mock', { .when('/auth/mock/', {
templateUrl: '/static/auth/mock/views/partials/signin.html' templateUrl: '/static/auth/mock/views/partials/signin.html'
, controller: 'SignInCtrl' , controller: 'SignInCtrl'
}) })
.otherwise({ .otherwise({
redirectTo: '/auth/mock' redirectTo: '/auth/mock/'
}) })
} }
]) ])