sussexstudent / falmer

🌻 Django-powered API for services & content
https://falmer.sussexstudent.com/
MIT License
1 stars 3 forks source link

Inbound link tracking + head rendering #101

Closed brudil closed 7 years ago

brudil commented 7 years ago

This could support for now:

Ideally we would not use the falmer subdomain as this isn't a public facing domain.

Essentially we would transform an event URL such as: https://www.sussexstudent.com/whats-on/the-globe-takeover-east-slope-145/ in to https://t.sussexstudent.com/event/145 this would successfully respond with a 200 status code.

On this page would be a barebones content-less page with all required/helpful meta tags for that model type. Then using JavaScript we would redirect them on to the canonical link.

This allows JavaScript-ignorant social media crawlers to still have pretty, styled attachments. Google runs js so this is not needed at all.

brudil commented 7 years ago

This isn't desired, but we have no choice. Done.