I've got URL redirect set up with my DNS so that if i go to the domain, it redirects to the flask app on python anywhere as i expect. The domain name is maintained in the browser
i then have some buttons which use javascript and 'window.location.assign("/relative/url") which is then intercepted using flask routes to deliver a template. This maintains the domain name in the browser still
but if I use a hyperlink (eg "href=/relative/url") within a page rendered from a template, the relative URL is the same but it sends me to "username.pythonanywhere.com/relative/url"
at first i thought this was perhaps because these links open in a new tab, but hovering over them shows that they resolve to the pythonanywhere domain name, not my own one, before you click on them
help! I'm confused. How do I get these links to maintain the domain name? do I need them to go through a route in my app?