diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..96ea4bf --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,11 @@ +# Contribute to Spuntik +You want to contribute to Sputnik? No Problem! Just open up a pull request to the `staging` branch! + +## main app +The main app is based on SwiftUI. To install it you'll need the latest version of Xcode. Open up the Sputnik.xcodeproj file in XCode and hit `⌘R` to run the app. To stop that process just hit `⌘.`. + +## landingpage +The landingpage can be found in the `docs/` directory. It's build with [jekyll](https://jekyllrb.com/) and [tailwindcss](https://tailwindcss.com/). +To ensure, all your styles you've added, run `npm run purge` in the docs folder to ensure all tailwind styles are included into the production css file (`tailwind.css`). + + diff --git a/Sputnik/GeminiDocument.swift b/Sputnik/GeminiDocument.swift index 0c0b0db..2617944 100644 --- a/Sputnik/GeminiDocument.swift +++ b/Sputnik/GeminiDocument.swift @@ -138,7 +138,7 @@ class GeminiDocument: ObservableObject { newUrl = GeminiURL(url: target) } else { let oldUrl = navStack[navIndex] - newUrl = oldUrl.combiningRelative(url: target) + newUrl = oldUrl.combiningRelative(url: target.standardized.absoluteURL) } self.connect(target: newUrl, lineId: lineId)