Implement pagination and auto-sitemap
This commit is contained in:
8
assets/js/get-correct-path.js
Normal file
8
assets/js/get-correct-path.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// this puts you back on the page you came from
|
||||
const referrer = document.referrer
|
||||
let anchor = document.getElementById("generate-path")
|
||||
if (referrer.includes("blog.shr4pnel.com") || referrer.includes("localhost:4000")) {
|
||||
anchor.href = referrer
|
||||
} else {
|
||||
anchor.href = "/"
|
||||
}
|
Reference in New Issue
Block a user