diff --git a/sitemap/sitemap.go b/sitemap/sitemap.go index 5fbcad044..0a08a776a 100644 --- a/sitemap/sitemap.go +++ b/sitemap/sitemap.go @@ -4,7 +4,6 @@ import ( "encoding/xml" "jobs" "net/http" - "strings" "time" "github.com/gin-gonic/gin" @@ -44,18 +43,16 @@ func (repository *SitemapRepository) GenerateSitemap(c *gin.Context) { {Loc: blogsUrl, Priority: `0.8`}, } - if strings.Contains(baseUrl, "dev-stack") { - careers, err := repository.careerRepo.GetCareers() + careers, err := repository.careerRepo.GetCareers() - if err != nil { - c.AbortWithStatus(http.StatusInternalServerError) - return - } + if err != nil { + c.AbortWithStatus(http.StatusInternalServerError) + return + } - for i := range careers { - sitemapUrls = append(sitemapUrls, URL{Loc: jobsUrl + `/` + careers[i].UniqueId, Priority: `0.9`}) - sitemapUrls = append(sitemapUrls, URL{Loc: jobsUrl + `/apply/` + careers[i].UniqueId, Priority: `0.9`}) - } + for i := range careers { + sitemapUrls = append(sitemapUrls, URL{Loc: jobsUrl + `/` + careers[i].UniqueId, Priority: `0.9`}) + sitemapUrls = append(sitemapUrls, URL{Loc: jobsUrl + `/apply/` + careers[i].UniqueId, Priority: `0.9`}) } //get first day of current month diff --git a/vue-frontend/src/components/ApplyForCareer.vue b/vue-frontend/src/components/ApplyForCareer.vue index 80052112c..508ee2ae2 100644 --- a/vue-frontend/src/components/ApplyForCareer.vue +++ b/vue-frontend/src/components/ApplyForCareer.vue @@ -335,20 +335,19 @@ - - + diff --git a/vue-frontend/src/components/HomeScreen.vue b/vue-frontend/src/components/HomeScreen.vue index 94ee686c7..6b8ab5206 100644 --- a/vue-frontend/src/components/HomeScreen.vue +++ b/vue-frontend/src/components/HomeScreen.vue @@ -11,8 +11,7 @@ - - + @@ -25,7 +24,6 @@ import ProblemSolution from "./home/ProblemSolution.vue"; import CanopasDescription from "./home/CanopasDescription.vue"; import HomeConsultation from "./home/HomeConsultation.vue"; import HomeCTA from "./home/HomeCTA.vue"; -import ScreenFooter from "./partials/ScreenFooter.vue"; import ScreenFooter2 from "./partials/ScreenFooter2.vue"; import ScreenMeta from "./partials/ScreenMeta.vue"; import DoYouKnow from "./home/DoYouKnow.vue"; @@ -56,7 +54,6 @@ library.add( export default { data() { return { - showJobs: Config.IS_SHOW_JOBS, seoData: Config.SEO_META_DATA, }; }, @@ -72,7 +69,6 @@ export default { CanopasDescription, HomeConsultation, HomeCTA, - ScreenFooter, ScreenFooter2, }, mounted() { diff --git a/vue-frontend/src/components/JobsScreen.vue b/vue-frontend/src/components/JobsScreen.vue index 604194844..9ba9b9d7b 100644 --- a/vue-frontend/src/components/JobsScreen.vue +++ b/vue-frontend/src/components/JobsScreen.vue @@ -46,7 +46,7 @@ export default { description: "Canopas is looking for professionals who are ready to step out of their comfort zones, want to acquire new skills, and want to make an impact in the world with their work.", type: "Jobs Posting Website", - url: config.JOBS_URL, + url: config.BASE_URL + "/jobs", }, }; }, diff --git a/vue-frontend/src/components/partials/ScreenHeader.vue b/vue-frontend/src/components/partials/ScreenHeader.vue index 044055c09..b5be75216 100644 --- a/vue-frontend/src/components/partials/ScreenHeader.vue +++ b/vue-frontend/src/components/partials/ScreenHeader.vue @@ -62,7 +62,7 @@ export default { data() { return { headerLogoImage: headerLogoImage, - careerURL: Config.IS_SHOW_JOBS ? "/jobs" : Config.JOBS_URL, + careerURL: "/jobs", blogsURL: Config.BLOG_URL, navbarSticky: false, navbarAnimation: false, diff --git a/vue-frontend/src/config.js b/vue-frontend/src/config.js index 464065807..c77022cc5 100644 --- a/vue-frontend/src/config.js +++ b/vue-frontend/src/config.js @@ -6,10 +6,9 @@ export default Object.freeze({ LINKEDIN_URL: "https://www.linkedin.com/company/canopasinc", MEDIUM_URL: "https://medium.com/canopas", BLOG_URL: "https://blog.canopas.com", - JOBS_URL: "https://jobs.canopas.com", API_BASE: "https://dev-stack-api.canopas.com", + BASE_URL: "https://dev-stack.canopas.com", CALENDLY_IFRAME_URL: "https://calendly.com/darpanvithani/15min", - IS_SHOW_JOBS: true, SEO_META_DATA: { title: "Canopas - A software development company in surat helping businesses bring their idea to life!", diff --git a/vue-frontend/src/config.prod.js b/vue-frontend/src/config.prod.js index d80df2174..f666b561b 100644 --- a/vue-frontend/src/config.prod.js +++ b/vue-frontend/src/config.prod.js @@ -6,10 +6,9 @@ export default Object.freeze({ LINKEDIN_URL: "https://www.linkedin.com/company/canopasinc", MEDIUM_URL: "https://medium.com/canopas", BLOG_URL: "https://blog.canopas.com", - JOBS_URL: "https://jobs.canopas.com", API_BASE: "https://prod-stack-api.canopas.com", + BASE_URL: "https://canopas.com", CALENDLY_IFRAME_URL: "https://calendly.com/darpanvithani/15min", - IS_SHOW_JOBS: false, SEO_META_DATA: { title: "Canopas - A software development company in surat helping businesses bring their idea to life!", diff --git a/vue-frontend/src/router/index.js b/vue-frontend/src/router/index.js index eef828f10..faa8a831c 100644 --- a/vue-frontend/src/router/index.js +++ b/vue-frontend/src/router/index.js @@ -1,5 +1,4 @@ import { createWebHistory, createRouter } from "vue-router"; -import Config from "@/config.js"; // Don't lazy load home screen import HomeScreen from "@/components/HomeScreen.vue"; @@ -26,28 +25,23 @@ const routes = [ name: "Error404Page", component: Error404Page, }, + { + path: "/jobs", + name: "JobsScreen", + component: JobsScreen, + }, + { + path: "/jobs/:id", + name: "CareerDetailsPage", + component: CareerDetailsPage, + }, + { + path: "/jobs/apply/:id", + name: "ApplyForCareerPage", + component: ApplyForCareerPage, + }, ]; -if (Config.IS_SHOW_JOBS) { - routes.push( - { - path: "/jobs", - name: "JobsScreen", - component: JobsScreen, - }, - { - path: "/jobs/:id", - name: "CareerDetailsPage", - component: CareerDetailsPage, - }, - { - path: "/jobs/apply/:id", - name: "ApplyForCareerPage", - component: ApplyForCareerPage, - } - ); -} - const router = createRouter({ history: createWebHistory(), routes,