mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Remove dashboard from dashboard URL
It’s weird that `/services/<service_id>` returns `404`. The home page for every service is the dashboard – should be possible to get there from any other page just by stemming the URL. Also makes it consistent with organisations, which will have `/organisations/<org_id>`.
This commit is contained in:
@@ -59,7 +59,7 @@ def test_should_login_user_and_should_redirect_to_next_url(
|
||||
session['user_details'] = {
|
||||
'id': api_user_active.id,
|
||||
'email': api_user_active.email_address}
|
||||
response = client.post(url_for('main.two_factor', next='/services/{}/dashboard'.format(SERVICE_ONE_ID)),
|
||||
response = client.post(url_for('main.two_factor', next='/services/{}'.format(SERVICE_ONE_ID)),
|
||||
data={'sms_code': '12345'})
|
||||
assert response.status_code == 302
|
||||
assert response.location == url_for(
|
||||
|
||||
Reference in New Issue
Block a user