Can there be a comment above this line like `# Generate absolute URI if its not already`? It took me a while to figure out what this section of code is doing.