From 57b24c05224e3a110311f50d317da036bdc3e43a Mon Sep 17 00:00:00 2001 From: gmemstr Date: Tue, 9 Jan 2018 10:03:24 -0800 Subject: [PATCH] Remove badges from README and redirect to correct login route --- README.md | 6 ++---- auth/auth.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 97b6182..6fc2e9e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Pogo logo ## Pogo + +[![Build Status](https://travis-ci.org/gmemstr/pogo.svg?branch=master)](https://travis-ci.org/gmemstr/pogo) Podcast RSS feed generator and CMS in Go. @@ -11,10 +13,6 @@ There are a couple options for getting Pogo up and running. - [Download the latest release](#running) - [Clone the repo and build](#building) -## Status - -[![Build Status](https://travis-ci.org/gmemstr/pogo.svg?branch=master)](https://travis-ci.org/gmemstr/pogo) [![gitgalaxy](https://img.shields.io/badge/website-gitgalaxy.com-blue.svg)](https://gitgalaxy.com) [![live branch](https://img.shields.io/badge/live-podcast.gitgalaxy.com-green.svg)](https://podcast.gitgalaxy.com) [![follow](https://img.shields.io/twitter/follow/gitgalaxy.svg?style=social&label=Follow)](https://twitter.com/gitgalaxy) - ## Features - Automatic RSS and JSON feed generation diff --git a/auth/auth.go b/auth/auth.go index 19b356c..b86caeb 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -68,7 +68,7 @@ func RequireAuthorization(permission int) common.Handler { if err != nil { fmt.Println(err.Error()) if strings.Contains(r.Header.Get("Accept"), "html") || r.Method == "GET" { - http.Redirect(w, r, "/login", http.StatusTemporaryRedirect) + http.Redirect(w, r, "/#/login", http.StatusTemporaryRedirect) return &common.HTTPError{ Message: "Unauthorized! Redirecting to /login", StatusCode: http.StatusTemporaryRedirect,